mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-17 22:09:53 +00:00
16 lines
207 B
Plaintext
16 lines
207 B
Plaintext
//@ run-rustfix
|
|
|
|
trait Foo {}
|
|
|
|
impl Foo for fn() {}
|
|
|
|
trait Bar {
|
|
fn do_stuff(&self) where Self: Foo {}
|
|
}
|
|
impl<T> Bar for T {}
|
|
|
|
fn main() {
|
|
(main as fn()).do_stuff();
|
|
//~^ ERROR the trait bound
|
|
}
|