summaryrefslogtreecommitdiffstats
path: root/src/test/ui/match/issue-82392.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/match/issue-82392.rs')
-rw-r--r--src/test/ui/match/issue-82392.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/match/issue-82392.rs b/src/test/ui/match/issue-82392.rs
new file mode 100644
index 000000000..d26d88304
--- /dev/null
+++ b/src/test/ui/match/issue-82392.rs
@@ -0,0 +1,9 @@
+// https://github.com/rust-lang/rust/issues/82329
+// compile-flags: -Zunpretty=hir,typed
+// check-pass
+
+pub fn main() {
+ if true {
+ } else if let Some(a) = Some(3) {
+ }
+}