rust/tests/ui/feature-gates/feature-gate-allow-internal-unstable-struct.stderr

21 lines
653 B
Plaintext
Raw Normal View History

error[E0658]: allow_internal_unstable side-steps feature gating and stability checks
2018-12-25 09:56:47 -06:00
--> $DIR/feature-gate-allow-internal-unstable-struct.rs:4:1
|
2019-03-09 06:03:44 -06:00
LL | #[allow_internal_unstable()]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: add `#![feature(allow_internal_unstable)]` to the crate attributes to enable
error: attribute should be applied to a macro
--> $DIR/feature-gate-allow-internal-unstable-struct.rs:4:1
|
LL | #[allow_internal_unstable()]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
LL |
LL | struct S;
| --------- not a macro
error: aborting due to 2 previous errors
2018-03-03 08:59:40 -06:00
For more information about this error, try `rustc --explain E0658`.