diff options
Diffstat (limited to 'tests/ui/binding/match-bot.rs')
-rw-r--r-- | tests/ui/binding/match-bot.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/binding/match-bot.rs b/tests/ui/binding/match-bot.rs new file mode 100644 index 000000000..5c4472c7a --- /dev/null +++ b/tests/ui/binding/match-bot.rs @@ -0,0 +1,7 @@ +// run-pass + +pub fn main() { + let i: isize = + match Some::<isize>(3) { None::<isize> => { panic!() } Some::<isize>(_) => { 5 } }; + println!("{}", i); +} |