rust/tests/ui/expr/if/attrs/gate-whole-expr.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
183 B
Rust
Raw Normal View History

// run-pass
fn main() {
2020-02-19 10:36:04 -06:00
let x = 1;
2020-02-19 10:36:04 -06:00
#[cfg(FALSE)]
if false {
x = 2;
} else if true {
x = 3;
} else {
x = 4;
}
assert_eq!(x, 1);
}