]> git.lizzy.rs Git - rust.git/blob - src/test/ui/stmt_expr_attrs_no_feature.stderr
Rollup merge of #59057 - czipperz:standardize_range_documentation, r=shepmaster
[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:13:5
3    |
4 LL |     #[attr]
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:94:18
11    |
12 LL |     fn y(a: [u8; #[attr] 5]);
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:101:19
19    |
20 LL |     const Y: u8 = #[attr] 5;
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:107:19
27    |
28 LL |     const Y: [u8; #[attr] 5];
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:113:18
35    |
36 LL |     field2: [u8; #[attr] 5]
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:118:10
43    |
44 LL |     [u8; #[attr] 5]
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:124:14
51    |
52 LL |         [u8; #[attr] 5]
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:129:22
59    |
60 LL |         field2: [u8; #[attr] 5]
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:137:14
67    |
68 LL |         6 => #[attr] (),
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`.