]> git.lizzy.rs Git - rust.git/blob - tests/ui/feature-gates/feature-gate-allow-internal-unstable-struct.stderr
Rollup merge of #106605 - notriddle:notriddle/outdated-rustbook, r=GuillaumeGomez
[rust.git] / tests / ui / feature-gates / feature-gate-allow-internal-unstable-struct.stderr
1 error[E0658]: allow_internal_unstable side-steps feature gating and stability checks
2   --> $DIR/feature-gate-allow-internal-unstable-struct.rs:4:1
3    |
4 LL | #[allow_internal_unstable()]
5    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = help: add `#![feature(allow_internal_unstable)]` to the crate attributes to enable
8
9 error: attribute should be applied to a macro
10   --> $DIR/feature-gate-allow-internal-unstable-struct.rs:4:1
11    |
12 LL | #[allow_internal_unstable()]
13    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14 LL |
15 LL | struct S;
16    | --------- not a macro
17
18 error: aborting due to 2 previous errors
19
20 For more information about this error, try `rustc --explain E0658`.