mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-11 01:17:39 +00:00
9 lines
205 B
Rust
9 lines
205 B
Rust
//@ dont-require-annotations: NOTE
|
|
|
|
fn main() {
|
|
let a = if true { true };
|
|
//~^ ERROR `if` may be missing an `else` clause [E0317]
|
|
//~| NOTE expected `bool`, found `()`
|
|
println!("{}", a);
|
|
}
|