summary refs log tree commit diff
path: root/src/test/compile-fail/native-unsafe-fn.rs
blob: 3d2c0e1f02b03606c8a1cb66050f0ab16aa56227 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// -*- rust -*-
// error-pattern: unsafe functions can only be called

#[abi = "cdecl"]
native mod test {
    unsafe fn free();
}

fn main() {
    let x = test::free;
}