diff options
Diffstat (limited to 'src/test/ui/match/match-bot-panic.rs')
-rw-r--r-- | src/test/ui/match/match-bot-panic.rs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/test/ui/match/match-bot-panic.rs b/src/test/ui/match/match-bot-panic.rs deleted file mode 100644 index e4a6f6d6f..000000000 --- a/src/test/ui/match/match-bot-panic.rs +++ /dev/null @@ -1,16 +0,0 @@ -// run-fail -// error-pattern:explicit panic -// ignore-emscripten no processes - -#![allow(unreachable_code)] -#![allow(unused_variables)] - -fn foo(s: String) {} - -fn main() { - let i = match Some::<isize>(3) { - None::<isize> => panic!(), - Some::<isize>(_) => panic!(), - }; - foo(i); -} |