rust/tests/ui/unsafe/unsafe-fn-called-from-safe.rs
2024-01-05 10:00:59 +00:00

9 lines
107 B
Rust

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