mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-03 05:27:36 +00:00
11 lines
289 B
Rust
11 lines
289 B
Rust
![]() |
// Regression test for issue #91421.
|
||
|
|
||
|
fn main() {
|
||
|
let value = if true && {
|
||
|
//~^ ERROR: this `if` expression has a condition, but no block
|
||
|
//~| HELP: maybe you forgot the right operand of the condition?
|
||
|
3
|
||
|
//~^ ERROR: mismatched types [E0308]
|
||
|
} else { 4 };
|
||
|
}
|