mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-15 10:07:30 +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)); } }
|
|
}
|