6d86969260
conflict with the new single-line-sugared-inner-doc-comment (`//! ...`).
9 lines
166 B
Rust
9 lines
166 B
Rust
// compile-flags: -W err-while-true
|
|
fn main() {
|
|
let mut i = 0;
|
|
while true { //~ ERROR denote infinite loops with loop
|
|
i += 1;
|
|
if i == 5 { break; }
|
|
}
|
|
}
|