rust/tests/ui/extern/issue-10025.rs
2024-02-16 20:02:50 +00:00

12 lines
219 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;
}