1 error[E0277]: expected a `std::ops::Fn<()>` closure, found `extern "C" fn() {f}`
2 --> $DIR/extern-wrong-value-type.rs:19:5
5 | ^^^^^ expected an `Fn<()>` closure, found `extern "C" fn() {f}`
7 = help: the trait `std::ops::Fn<()>` is not implemented for `extern "C" fn() {f}`
8 = note: wrap the `extern "C" fn() {f}` in a closure with no arguments: `|| { /* code */ }
9 note: required by `is_fn`
10 --> $DIR/extern-wrong-value-type.rs:14:1
12 LL | fn is_fn<F>(_: F) where F: Fn() {}
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15 error: aborting due to previous error
17 For more information about this error, try `rustc --explain E0277`.