summaryrefslogtreecommitdiffstats
path: root/src/test/ui/binding/match-bot.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/binding/match-bot.rs')
-rw-r--r--src/test/ui/binding/match-bot.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/ui/binding/match-bot.rs b/src/test/ui/binding/match-bot.rs
new file mode 100644
index 000000000..5c4472c7a
--- /dev/null
+++ b/src/test/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);
+}