Fix error index example
This commit is contained in:
parent
fcfeb06817
commit
90f40cd0fb
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue