mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-07 12:48:30 +00:00
11 lines
128 B
Rust
11 lines
128 B
Rust
![]() |
//@ run-rustfix
|
||
|
|
||
|
trait Foo {}
|
||
|
|
||
|
impl Foo for fn() {}
|
||
|
|
||
|
fn main() {
|
||
|
let _x: &dyn Foo = &main;
|
||
|
//~^ ERROR the trait bound
|
||
|
}
|