]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unsafe/unsafe-fn-called-from-safe.rs
Auto merge of #84589 - In-line:zircon-thread-name, r=JohnTitor
[rust.git] / src / test / ui / unsafe / unsafe-fn-called-from-safe.rs
1 // revisions: mir thir
2 // [thir]compile-flags: -Z thir-unsafeck
3
4 unsafe fn f() { return; }
5
6 fn main() {
7     f(); //~ ERROR call to unsafe function is unsafe
8 }