summaryrefslogtreecommitdiffstats
path: root/tests/ui/feature-gates/feature-gate-stmt_expr_attributes.rs
blob: f213e8933bf577ea04c5197728f2e0482703b6b5 (plain)
1
2
3
4
const X: i32 = #[allow(dead_code)] 8;
//~^ ERROR attributes on expressions are experimental

fn main() {}