os-rust/tests/ui/unsafe/foreign-unsafe-fn-called.rs

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

11 lines
154 B
Rust
Raw Normal View History

mod test {
2020-09-01 17:12:52 -04:00
extern "C" {
pub fn free();
}
2011-10-11 18:01:54 -07:00
}
fn main() {
test::free();
2023-12-07 11:56:48 +00:00
//~^ ERROR call to unsafe function `test::free` is unsafe
2011-10-11 18:01:54 -07:00
}