rust/tests/ui/feature-gates/feature-gate-stmt_expr_attributes.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

5 lines
106 B
Rust
Raw Normal View History

const X: i32 = #[allow(dead_code)] 8;
2019-04-10 18:40:12 -05:00
//~^ ERROR attributes on expressions are experimental
fn main() {}