about summary refs log tree commit diff
path: root/tests/ui/binding/match-bot.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/binding/match-bot.rs')
-rw-r--r--tests/ui/binding/match-bot.rs7
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 00000000000..5c4472c7aea
--- /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);
+}