blob: 0bc8792b04e0681c2220f3f593738e3a6e3be332 [file] [log] [blame] [edit]
//@ run-rustfix
trait Foo {}
impl Foo for fn() {}
fn main() {
let _x: &dyn Foo = &(main as fn());
//~^ ERROR the trait bound
}