rust/tests/ui/extern/issue-10025.rs
2023-01-11 09:32:08 +00:00

12 lines
217 B
Rust

// run-pass
// pretty-expanded FIXME #23616
#![allow(dead_code)]
unsafe extern fn foo() {}
unsafe extern "C" fn bar() {}
fn main() {
let _a: unsafe extern fn() = foo;
let _a: unsafe extern "C" fn() = foo;
}