about summary refs log tree commit diff
path: root/tests/ui/unsafe/foreign-unsafe-fn-called.rs
blob: b5065beb5fcb8804b7b5bd5f4a4ea36a6fb1093d (plain)
1
2
3
4
5
6
7
8
9
10
mod test {
    extern "C" {
        pub fn free();
    }
}

fn main() {
    test::free();
    //~^ ERROR call to unsafe function `test::free` is unsafe
}