2025-04-05 19:19:56 +03:00
|
|
|
//@ dont-require-annotations: NOTE
|
|
|
|
|
|
2011-11-07 12:20:22 -08:00
|
|
|
fn main() {
|
|
|
|
|
let a = if true { true };
|
2020-01-05 00:17:46 +00:00
|
|
|
//~^ ERROR `if` may be missing an `else` clause [E0317]
|
2025-04-05 19:19:56 +03:00
|
|
|
//~| NOTE expected `bool`, found `()`
|
2014-10-14 21:07:11 -04:00
|
|
|
println!("{}", a);
|
2013-02-14 11:47:00 -08:00
|
|
|
}
|