rust/tests/ui/extern/issue-10025.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
219 B
Rust
Raw Normal View History

//@ 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;
}