fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
1.3 KiB44 linesraw
1error: stability attributes may not be used outside of the standard library
2  --> $DIR/issue-43106-gating-of-stable.rs:7:1
3   |
4LL | #![stable()]
5   | ^^^^^^^^^^^^
6
7error: stability attributes may not be used outside of the standard library
8  --> $DIR/issue-43106-gating-of-stable.rs:10:1
9   |
10LL | #[stable()]
11   | ^^^^^^^^^^^
12
13error: stability attributes may not be used outside of the standard library
14  --> $DIR/issue-43106-gating-of-stable.rs:13:17
15   |
16LL |     mod inner { #![stable()] }
17   |                 ^^^^^^^^^^^^
18
19error: stability attributes may not be used outside of the standard library
20  --> $DIR/issue-43106-gating-of-stable.rs:16:5
21   |
22LL |     #[stable()] fn f() { }
23   |     ^^^^^^^^^^^
24
25error: stability attributes may not be used outside of the standard library
26  --> $DIR/issue-43106-gating-of-stable.rs:19:5
27   |
28LL |     #[stable()] struct S;
29   |     ^^^^^^^^^^^
30
31error: stability attributes may not be used outside of the standard library
32  --> $DIR/issue-43106-gating-of-stable.rs:22:5
33   |
34LL |     #[stable()] type T = S;
35   |     ^^^^^^^^^^^
36
37error: stability attributes may not be used outside of the standard library
38  --> $DIR/issue-43106-gating-of-stable.rs:25:5
39   |
40LL |     #[stable()] impl S { }
41   |     ^^^^^^^^^^^
42
43error: aborting due to 7 previous errors
44