2021-03-14 20:11:37 +01:00
|
|
|
// revisions: mir thir
|
|
|
|
// [thir]compile-flags: -Z thir-unsafeck
|
|
|
|
|
2012-08-01 17:30:05 -07:00
|
|
|
unsafe fn f() { return; }
|
2011-10-06 21:33:04 -07:00
|
|
|
|
|
|
|
fn main() {
|
2022-04-26 10:43:00 +00:00
|
|
|
f();
|
|
|
|
//[mir]~^ ERROR call to unsafe function is unsafe
|
|
|
|
//[thir]~^^ ERROR call to unsafe function `f` is unsafe
|
2011-10-06 21:33:04 -07:00
|
|
|
}
|