Skip to content

Commit 90f40cd

Browse files
committed
Fix error index example
1 parent fcfeb06 commit 90f40cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_mir/diagnostics.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1978,8 +1978,8 @@ could cause the match to be non-exhaustive:
19781978
let mut x = Some(0);
19791979
match x {
19801980
None => (),
1981-
Some(v) if { x = None; false } => (),
1982-
Some(_) => (), // No longer matches
1981+
Some(_) if { x = None; false } => (),
1982+
Some(v) => (), // No longer matches
19831983
}
19841984
```
19851985

0 commit comments

Comments
 (0)