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

22 lines
782 B
Plaintext
Raw Normal View History

error[E0658]: allow_internal_unstable side-steps feature gating and stability checks
2025-02-09 22:50:01 +01:00
--> $DIR/feature-gate-allow-internal-unstable-struct.rs:6:1
|
2025-02-09 22:50:01 +01:00
LL | #[allow_internal_unstable(something)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: add `#![feature(allow_internal_unstable)]` to the crate attributes to enable
2024-01-10 01:39:02 -05:00
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error: attribute should be applied to a macro
2025-02-09 22:50:01 +01:00
--> $DIR/feature-gate-allow-internal-unstable-struct.rs:6:1
|
2025-02-09 22:50:01 +01:00
LL | #[allow_internal_unstable(something)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
LL |
LL | struct S;
| --------- not a macro
error: aborting due to 2 previous errors
2018-03-03 15:59:40 +01:00
For more information about this error, try `rustc --explain E0658`.