<!-- Thank you for filing a bug report! 🐛 Please provide a short summary of the bug, along with any information you feel relevant to replicating the bug. --> I tried this code: https://github.com/rust-lang/rust/blob/aa3ca1994904f2e056679fce1f185db8c7ed2703/src/test/ui/issue-10764.rs ```rust fn f(_: extern "Rust" fn()) {} extern fn bar() {} fn main() { f(bar) } //~^ ERROR mismatched types ``` I expected to see this happen: //~^ ERROR mismatched types Instead, this happened: ``` <source>:1:9: error: unknown ABI option 1 | fn f(_: extern "Rust" fn()) {} | ^~~~~~ ``` ### Meta - What version of Rust GCC were you using, git sha if possible. be27571c110d99fe55324a9c2b6622787b08fb52