1 2 3 4 5 6 7 8 9 10
//@ run-rustfix trait Foo {} impl Foo for fn() {} fn main() { let _x: &dyn Foo = &main; //~^ ERROR the trait bound }