1 error[E0277]: the trait bound `fn() -> Foo: Bar` is not satisfied
2 --> $DIR/call-on-unimplemented-fn-ptr.rs:10:15
5 | --------- ^ the trait `Bar` is not implemented for `fn() -> Foo`
7 | required by a bound introduced by this call
9 note: required by a bound in `needs_bar`
10 --> $DIR/call-on-unimplemented-fn-ptr.rs:7:17
12 LL | fn needs_bar<T: Bar>(_: T) {}
13 | ^^^ required by this bound in `needs_bar`
14 help: use parentheses to call this function pointer
19 error: aborting due to previous error
21 For more information about this error, try `rustc --explain E0277`.