rust/src/test/ui/stmt_expr_attrs_no_feature.stderr

76 lines
2.5 KiB
Plaintext
Raw Normal View History

error[E0658]: attributes on expressions are experimental. (see issue #15701)
2018-12-25 09:56:47 -06:00
--> $DIR/stmt_expr_attrs_no_feature.rs:13:5
|
2019-03-09 06:03:44 -06:00
LL | #[attr]
| ^^^^^^^
|
= help: add #![feature(stmt_expr_attributes)] to the crate attributes to enable
2018-08-08 07:28:26 -05:00
error[E0658]: attributes on expressions are experimental. (see issue #15701)
2018-12-25 09:56:47 -06:00
--> $DIR/stmt_expr_attrs_no_feature.rs:94:18
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | fn y(a: [u8; #[attr] 5]);
2018-08-08 07:28:26 -05:00
| ^^^^^^^
|
= help: add #![feature(stmt_expr_attributes)] to the crate attributes to enable
error[E0658]: attributes on expressions are experimental. (see issue #15701)
2018-12-25 09:56:47 -06:00
--> $DIR/stmt_expr_attrs_no_feature.rs:101:19
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | const Y: u8 = #[attr] 5;
2018-08-08 07:28:26 -05:00
| ^^^^^^^
|
= help: add #![feature(stmt_expr_attributes)] to the crate attributes to enable
error[E0658]: attributes on expressions are experimental. (see issue #15701)
2018-12-25 09:56:47 -06:00
--> $DIR/stmt_expr_attrs_no_feature.rs:107:19
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | const Y: [u8; #[attr] 5];
2018-08-08 07:28:26 -05:00
| ^^^^^^^
|
= help: add #![feature(stmt_expr_attributes)] to the crate attributes to enable
error[E0658]: attributes on expressions are experimental. (see issue #15701)
2018-12-25 09:56:47 -06:00
--> $DIR/stmt_expr_attrs_no_feature.rs:113:18
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | field2: [u8; #[attr] 5]
2018-08-08 07:28:26 -05:00
| ^^^^^^^
|
= help: add #![feature(stmt_expr_attributes)] to the crate attributes to enable
error[E0658]: attributes on expressions are experimental. (see issue #15701)
2018-12-25 09:56:47 -06:00
--> $DIR/stmt_expr_attrs_no_feature.rs:118:10
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | [u8; #[attr] 5]
2018-08-08 07:28:26 -05:00
| ^^^^^^^
|
= help: add #![feature(stmt_expr_attributes)] to the crate attributes to enable
error[E0658]: attributes on expressions are experimental. (see issue #15701)
2018-12-25 09:56:47 -06:00
--> $DIR/stmt_expr_attrs_no_feature.rs:124:14
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | [u8; #[attr] 5]
2018-08-08 07:28:26 -05:00
| ^^^^^^^
|
= help: add #![feature(stmt_expr_attributes)] to the crate attributes to enable
error[E0658]: attributes on expressions are experimental. (see issue #15701)
2018-12-25 09:56:47 -06:00
--> $DIR/stmt_expr_attrs_no_feature.rs:129:22
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | field2: [u8; #[attr] 5]
2018-08-08 07:28:26 -05:00
| ^^^^^^^
|
= help: add #![feature(stmt_expr_attributes)] to the crate attributes to enable
error[E0658]: attributes on expressions are experimental. (see issue #15701)
2018-12-25 09:56:47 -06:00
--> $DIR/stmt_expr_attrs_no_feature.rs:137:14
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | 6 => #[attr] (),
2018-08-08 07:28:26 -05:00
| ^^^^^^^
|
= help: add #![feature(stmt_expr_attributes)] to the crate attributes to enable
error: aborting due to 9 previous errors
2018-08-08 07:28:26 -05:00
For more information about this error, try `rustc --explain E0658`.