rust/tests/ui/expr/if/attrs/builtin-if-attr.rs
2024-02-16 20:02:50 +00:00

13 lines
173 B
Rust

//@ check-pass
fn main() {
#[allow(unused_variables)]
if true {
let a = 1;
} else if false {
let b = 1;
} else {
let c = 1;
}
}