mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-30 08:16:56 +00:00
9 lines
201 B
Rust
9 lines
201 B
Rust
//@ dont-require-annotations: NOTE
|
|
|
|
fn main() {
|
|
while true { //~ WARN denote infinite loops with
|
|
true //~ ERROR mismatched types
|
|
//~| NOTE expected `()`, found `bool`
|
|
}
|
|
}
|