diff options
Diffstat (limited to 'src/test/ui/binding/match-bot-2.rs')
-rw-r--r-- | src/test/ui/binding/match-bot-2.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/binding/match-bot-2.rs b/src/test/ui/binding/match-bot-2.rs new file mode 100644 index 000000000..95b3406f0 --- /dev/null +++ b/src/test/ui/binding/match-bot-2.rs @@ -0,0 +1,6 @@ +// run-pass +#![allow(unreachable_code)] +// n.b. This was only ever failing with optimization disabled. + +fn a() -> isize { match return 1 { 2 => 3, _ => panic!() } } +pub fn main() { a(); } |