]> git.lizzy.rs Git - rust.git/blob - src/test/ui/stmt_expr_attrs_no_feature.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / stmt_expr_attrs_no_feature.stderr
1 error[E0658]: attributes on expressions are experimental. (see issue #15701)
2   --> $DIR/stmt_expr_attrs_no_feature.rs:23:5
3    |
4 LL |     #[attr] //~ ERROR attributes on expressions are experimental
5    |     ^^^^^^^
6    |
7    = help: add #![feature(stmt_expr_attributes)] to the crate attributes to enable
8
9 error[E0658]: attributes on expressions are experimental. (see issue #15701)
10   --> $DIR/stmt_expr_attrs_no_feature.rs:104:18
11    |
12 LL |     fn y(a: [u8; #[attr] 5]); //~ ERROR 15701
13    |                  ^^^^^^^
14    |
15    = help: add #![feature(stmt_expr_attributes)] to the crate attributes to enable
16
17 error[E0658]: attributes on expressions are experimental. (see issue #15701)
18   --> $DIR/stmt_expr_attrs_no_feature.rs:111:19
19    |
20 LL |     const Y: u8 = #[attr] 5; //~ ERROR 15701
21    |                   ^^^^^^^
22    |
23    = help: add #![feature(stmt_expr_attributes)] to the crate attributes to enable
24
25 error[E0658]: attributes on expressions are experimental. (see issue #15701)
26   --> $DIR/stmt_expr_attrs_no_feature.rs:117:19
27    |
28 LL |     const Y: [u8; #[attr] 5]; //~ ERROR 15701
29    |                   ^^^^^^^
30    |
31    = help: add #![feature(stmt_expr_attributes)] to the crate attributes to enable
32
33 error[E0658]: attributes on expressions are experimental. (see issue #15701)
34   --> $DIR/stmt_expr_attrs_no_feature.rs:123:18
35    |
36 LL |     field2: [u8; #[attr] 5] //~ ERROR 15701
37    |                  ^^^^^^^
38    |
39    = help: add #![feature(stmt_expr_attributes)] to the crate attributes to enable
40
41 error[E0658]: attributes on expressions are experimental. (see issue #15701)
42   --> $DIR/stmt_expr_attrs_no_feature.rs:128:10
43    |
44 LL |     [u8; #[attr] 5] //~ ERROR 15701
45    |          ^^^^^^^
46    |
47    = help: add #![feature(stmt_expr_attributes)] to the crate attributes to enable
48
49 error[E0658]: attributes on expressions are experimental. (see issue #15701)
50   --> $DIR/stmt_expr_attrs_no_feature.rs:134:14
51    |
52 LL |         [u8; #[attr] 5] //~ ERROR 15701
53    |              ^^^^^^^
54    |
55    = help: add #![feature(stmt_expr_attributes)] to the crate attributes to enable
56
57 error[E0658]: attributes on expressions are experimental. (see issue #15701)
58   --> $DIR/stmt_expr_attrs_no_feature.rs:139:22
59    |
60 LL |         field2: [u8; #[attr] 5] //~ ERROR 15701
61    |                      ^^^^^^^
62    |
63    = help: add #![feature(stmt_expr_attributes)] to the crate attributes to enable
64
65 error[E0658]: attributes on expressions are experimental. (see issue #15701)
66   --> $DIR/stmt_expr_attrs_no_feature.rs:147:14
67    |
68 LL |         6 => #[attr] (), //~ ERROR 15701
69    |              ^^^^^^^
70    |
71    = help: add #![feature(stmt_expr_attributes)] to the crate attributes to enable
72
73 error: aborting due to 9 previous errors
74
75 For more information about this error, try `rustc --explain E0658`.