2 // [thir]compile-flags: -Z thir-unsafeck
4 #![feature(const_extern_fn)]
6 const unsafe extern "C" fn foo() -> usize { 5 }
10 //~^ ERROR call to unsafe function is unsafe and requires unsafe function or block
12 //~^ ERROR call to unsafe function is unsafe and requires unsafe function or block