mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 22:32:31 +00:00
11 lines
186 B
Rust
11 lines
186 B
Rust
//@ run-pass
|
|
#![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;
|
|
}
|