]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_mir/diagnostics.rs
Auto merge of #57609 - matthewjasper:more-restrictive-match, r=pnkfelix
[rust.git] / src / librustc_mir / diagnostics.rs
index f369324157a9e358209f694a76c31ae813ce82b6..e1b66312da2d306360b8c782940fed4328411b6f 100644 (file)
@@ -1985,8 +1985,8 @@ fn main() {
 let mut x = Some(0);
 match x {
     None => (),
-    Some(v) if { x = None; false } => (),
-    Some(_) => (), // No longer matches
+    Some(_) if { x = None; false } => (),
+    Some(v) => (), // No longer matches
 }
 ```