未验证 提交 91680347 编写于 作者: N Niko Matsakis 提交者: GitHub

make the `while let` loop terminate

上级 01fbeb5b
......@@ -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; }
}
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册