summaryrefslogtreecommitdiffstats
path: root/src/test/ui/match/expr-match-panic-fn.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/match/expr-match-panic-fn.rs')
-rw-r--r--src/test/ui/match/expr-match-panic-fn.rs19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/test/ui/match/expr-match-panic-fn.rs b/src/test/ui/match/expr-match-panic-fn.rs
deleted file mode 100644
index ea471717e..000000000
--- a/src/test/ui/match/expr-match-panic-fn.rs
+++ /dev/null
@@ -1,19 +0,0 @@
-// run-fail
-// error-pattern:explicit panic
-// ignore-emscripten no processes
-
-fn f() -> ! {
- panic!()
-}
-
-fn g() -> isize {
- let x = match true {
- true => f(),
- false => 10,
- };
- return x;
-}
-
-fn main() {
- g();
-}