rust/tests/ui/unsafe/unsafe-fn-called-from-safe.rs

9 lines
107 B
Rust

unsafe fn f() {
return;
}
fn main() {
f();
//~^ ERROR call to unsafe function `f` is unsafe
}