2018-01-13 14:05:51 +01:00
|
|
|
error[E0658]: attributes on non-item statements and expressions are experimental. (see issue #15701)
|
2017-12-06 09:27:47 +01:00
|
|
|
--> $DIR/feature-gate-stmt_expr_attributes.rs:11:16
|
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | const X: i32 = #[allow(dead_code)] 8;
|
2017-12-06 09:27:47 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
= help: add #![feature(stmt_expr_attributes)] to the crate attributes to enable
|
|
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
2018-02-19 21:40:25 +01:00
|
|
|
If you want more information on this error, try using "rustc --explain E0658"
|