Files
rust/tests/ui/block-result/block-must-not-have-result-while.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
201 B
Rust
Raw Normal View History

//@ dont-require-annotations: NOTE
fn main() {
while true { //~ WARN denote infinite loops with
2015-01-12 01:01:44 -05:00
true //~ ERROR mismatched types
//~| NOTE expected `()`, found `bool`
}
}