mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-28 21:55:31 +00:00
11 lines
199 B
Rust
11 lines
199 B
Rust
//@ run-pass
|
|
#![allow(dead_code, missing_abi)]
|
|
|
|
unsafe extern fn foo() {}
|
|
unsafe extern "C" fn bar() {}
|
|
|
|
fn main() {
|
|
let _a: unsafe extern fn() = foo;
|
|
let _a: unsafe extern "C" fn() = foo;
|
|
}
|