c48b0d4eb4
Fixes #121632
11 lines
138 B
Rust
11 lines
138 B
Rust
//@ run-rustfix
|
|
|
|
trait Foo {}
|
|
|
|
impl Foo for fn() {}
|
|
|
|
fn main() {
|
|
let _x: &dyn Foo = &(main as fn());
|
|
//~^ ERROR the trait bound
|
|
}
|