about summary refs log tree commit diff
path: root/tests/ui/feature-gates/feature-gate-stmt_expr_attributes.rs
blob: 85c08ec035eb350e068ec5ca296f178cd8bf60ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const X: i32 = #[allow(dead_code)] 8;
//~^ ERROR attributes on expressions are experimental

const Y: i32 =
    /// foo
//~^ ERROR attributes on expressions are experimental
    8;

const Z: i32 = {
    //! foo
//~^ ERROR attributes on expressions are experimental
    8
};

fn main() {}