1 error[E0308]: mismatched types
2 --> $DIR/issue-10764.rs:14:15
4 LL | fn main() { f(bar) }
5 | ^^^ expected "Rust" fn, found "C" fn
7 = note: expected type `fn()`
8 found type `extern "C" fn() {bar}`
10 error: aborting due to previous error
12 For more information about this error, try `rustc --explain E0308`.