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.

7 lines
160 B
Rust
Raw Normal View History

fn main() {
while true { //~ WARN denote infinite loops with
2015-01-12 06:01:44 +00:00
true //~ ERROR mismatched types
//~| expected `()`, found `bool`
}
}