summaryrefslogtreecommitdiffstats
path: root/tests/ui/extern/issue-10025.rs
blob: 4439b4685251f5556e813f8aa297a267fb5a22d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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;
}