make the while let loop terminate

This commit is contained in:
Niko Matsakis 2018-06-25 17:33:49 -04:00 committed by GitHub
parent 01fbeb5b7a
commit 91680347a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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; }
}
```