rust/tests/ui/expr/if/attrs/stmt-expr-gated.rs

7 lines
132 B
Rust

fn main() {
let _ = #[deny(warnings)] if true { //~ ERROR attributes on expressions
} else if false {
} else {
};
}