rust/tests/ui/feature-gates/feature-gate-stmt_expr_attributes.rs
2023-01-11 09:32:08 +00:00

5 lines
106 B
Rust

const X: i32 = #[allow(dead_code)] 8;
//~^ ERROR attributes on expressions are experimental
fn main() {}