Skip to content

Commit

Permalink
make the while let loop terminate
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis authored Jun 25, 2018
1 parent 01fbeb5 commit 9168034
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
}
```

0 comments on commit 9168034

Please sign in to comment.