]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unsafe/unsafe-fn-called-from-safe.rs
Merge commit '03f01bbe901d60b71cf2c5ec766aef5e532ab79d' into update_cg_clif-2020...
[rust.git] / src / test / ui / unsafe / unsafe-fn-called-from-safe.rs
1 unsafe fn f() { return; }
2
3 fn main() {
4     f(); //~ ERROR call to unsafe function is unsafe
5 }