mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
21 lines
576 B
Rust
21 lines
576 B
Rust
// run-pass
|
|
|
|
pub fn main() {
|
|
if 1 == 2 {
|
|
assert!((false));
|
|
} else if 2 == 3 {
|
|
assert!((false));
|
|
} else if 3 == 4 { assert!((false)); } else { assert!((true)); }
|
|
if 1 == 2 { assert!((false)); } else if 2 == 2 { assert!((true)); }
|
|
if 1 == 2 {
|
|
assert!((false));
|
|
} else if 2 == 2 {
|
|
if 1 == 1 {
|
|
assert!((true));
|
|
} else { if 2 == 1 { assert!((false)); } else { assert!((false)); } }
|
|
}
|
|
if 1 == 2 {
|
|
assert!((false));
|
|
} else { if 1 == 2 { assert!((false)); } else { assert!((true)); } }
|
|
}
|