rust/tests/ui/error-codes/E0133.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
136 B
Rust
Raw Normal View History

// revisions: mir thir
// [thir]compile-flags: -Z thir-unsafeck
2016-05-28 04:06:24 +08:00
unsafe fn f() { return; }
fn main() {
2016-08-10 15:29:45 +08:00
f();
//~^ ERROR E0133
2016-05-28 04:06:24 +08:00
}