make the while let loop terminate
This commit is contained in:
parent
01fbeb5b7a
commit
91680347a7
1 changed files with 1 additions and 1 deletions
|
|
@ -23,6 +23,6 @@ fn main() {
|
|||
// These two examples used to be errors, but now they
|
||||
// trigger a lint (that is allowed):
|
||||
if let _ = 5 {}
|
||||
while let _ = 5 {}
|
||||
while let _ = 5 { break; }
|
||||
}
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue