rust/tests/ui/expr/if/attrs/bad-cfg.rs

6 lines
120 B
Rust

#![feature(stmt_expr_attributes)]
fn main() {
let _ = #[cfg(FALSE)] if true {}; //~ ERROR removing an expression
}