mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00

Done with ```bash sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs ``` and ``` sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs ```
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;
|
|
}
|