rustc/tests/ui/expr/if/attrs/gate-whole-expr.rs
2024-06-21 09:39:33 +02:00

16 lines
184 B
Rust

//@ run-pass
fn main() {
let x = 1;
#[cfg(FALSE)]
if false {
x = 2;
} else if true {
x = 3;
} else {
x = 4;
}
assert_eq!(x, 1);
}