|
1 | 1 | error: can't mark as unstable using an already stable feature |
2 | | - --> $DIR/unstable-attribute-rejects-already-stable-features.rs:7:1 |
| 2 | + --> $DIR/unstable-attribute-rejects-already-stable-features.rs:6:1 |
3 | 3 | | |
| 4 | +LL | #[unstable(feature = "arbitrary_enum_discriminant", issue = "42")] |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this feature is already stable |
4 | 6 | LL | #[rustc_const_unstable(feature = "arbitrary_enum_discriminant", issue = "42")] |
5 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this feature is already stable |
6 | 7 | LL | const fn my_fun() {} |
7 | 8 | | -------------------- the stability attribute annotates this item |
8 | 9 | | |
9 | 10 | help: consider removing the attribute |
10 | | - --> $DIR/unstable-attribute-rejects-already-stable-features.rs:7:1 |
| 11 | + --> $DIR/unstable-attribute-rejects-already-stable-features.rs:6:1 |
11 | 12 | | |
12 | | -LL | #[rustc_const_unstable(feature = "arbitrary_enum_discriminant", issue = "42")] |
13 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 13 | +LL | #[unstable(feature = "arbitrary_enum_discriminant", issue = "42")] |
| 14 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
14 | 15 |
|
15 | 16 | error: can't mark as unstable using an already stable feature |
16 | | - --> $DIR/unstable-attribute-rejects-already-stable-features.rs:6:1 |
| 17 | + --> $DIR/unstable-attribute-rejects-already-stable-features.rs:7:1 |
17 | 18 | | |
18 | | -LL | #[unstable(feature = "arbitrary_enum_discriminant", issue = "42")] |
19 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this feature is already stable |
20 | 19 | LL | #[rustc_const_unstable(feature = "arbitrary_enum_discriminant", issue = "42")] |
| 20 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this feature is already stable |
21 | 21 | LL | const fn my_fun() {} |
22 | 22 | | -------------------- the stability attribute annotates this item |
23 | 23 | | |
24 | 24 | help: consider removing the attribute |
25 | | - --> $DIR/unstable-attribute-rejects-already-stable-features.rs:6:1 |
| 25 | + --> $DIR/unstable-attribute-rejects-already-stable-features.rs:7:1 |
26 | 26 | | |
27 | | -LL | #[unstable(feature = "arbitrary_enum_discriminant", issue = "42")] |
28 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 27 | +LL | #[rustc_const_unstable(feature = "arbitrary_enum_discriminant", issue = "42")] |
| 28 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
29 | 29 |
|
30 | 30 | error: aborting due to 2 previous errors |
31 | 31 |
|
0 commit comments