diff options
Diffstat (limited to 'tests/ui/error-codes/E0133.rs')
-rw-r--r-- | tests/ui/error-codes/E0133.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/error-codes/E0133.rs b/tests/ui/error-codes/E0133.rs new file mode 100644 index 000000000..dee1475ba --- /dev/null +++ b/tests/ui/error-codes/E0133.rs @@ -0,0 +1,9 @@ +// revisions: mir thir +// [thir]compile-flags: -Z thir-unsafeck + +unsafe fn f() { return; } + +fn main() { + f(); + //~^ ERROR E0133 +} |