summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/building/issue_101867.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mir-opt/building/issue_101867.rs')
-rw-r--r--tests/mir-opt/building/issue_101867.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/mir-opt/building/issue_101867.rs b/tests/mir-opt/building/issue_101867.rs
new file mode 100644
index 000000000..a32d8cb37
--- /dev/null
+++ b/tests/mir-opt/building/issue_101867.rs
@@ -0,0 +1,7 @@
+// EMIT_MIR issue_101867.main.built.after.mir
+fn main() {
+ let x: Option<u8> = Some(1);
+ let Some(y) = x else {
+ panic!();
+ };
+}