diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/fn/expr-fn-panic.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/fn/expr-fn-panic.rs b/src/test/ui/fn/expr-fn-panic.rs new file mode 100644 index 000000000..123b57f97 --- /dev/null +++ b/src/test/ui/fn/expr-fn-panic.rs @@ -0,0 +1,11 @@ +// run-fail +// error-pattern:explicit panic +// ignore-emscripten no processes + +fn f() -> ! { + panic!() +} + +fn main() { + f(); +} |