1 error[E0277]: the trait bound `&Box<dyn Fn() -> i32>: Foo` is not satisfied
2 --> $DIR/call-on-unimplemented-with-autoderef.rs:8:15
5 | --------- ^ the trait `Foo` is not implemented for `&Box<dyn Fn() -> i32>`
7 | required by a bound introduced by this call
9 note: required by a bound in `needs_foo`
10 --> $DIR/call-on-unimplemented-with-autoderef.rs:5:22
12 LL | fn needs_foo(_: impl Foo) {}
13 | ^^^ required by this bound in `needs_foo`
14 help: use parentheses to call this trait object
19 error: aborting due to previous error
21 For more information about this error, try `rustc --explain E0277`.