about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/librustc_mir/diagnostics.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_mir/diagnostics.rs b/src/librustc_mir/diagnostics.rs
index 4df3004a9ad..d8384e17ef0 100644
--- a/src/librustc_mir/diagnostics.rs
+++ b/src/librustc_mir/diagnostics.rs
@@ -1978,8 +1978,8 @@ could cause the match to be non-exhaustive:
 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
 }
 ```