rust/src/test/ui/issues/issue-10025.rs
2019-07-27 18:56:16 +03:00

12 lines
217 B
Rust

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