Skip to content

Commit

Permalink
Fix error index example
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewjasper committed Feb 21, 2019
1 parent fcfeb06 commit 90f40cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc_mir/diagnostics.rs
Expand Up @@ -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
}
```
Expand Down

0 comments on commit 90f40cd

Please sign in to comment.