fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1019 B49 linesraw
1error[E0449]: visibility qualifiers are not permitted here
2  --> $DIR/issue-113860-2.rs:12:5
3   |
4LL |     pub(self) type X = Self;
5   |     ^^^^^^^^^
6   |
7   = note: trait items always share the visibility of their trait
8
9error: module has missing stability attribute
10  --> $DIR/issue-113860-2.rs:1:1
11   |
12LL | / #![feature(staged_api)]
13LL | |
14LL | |
15LL | | pub trait Trait {
16...  |
17LL | |
18LL | | fn main() {}
19   | |____________^
20
21error: trait has missing stability attribute
22  --> $DIR/issue-113860-2.rs:4:1
23   |
24LL | / pub trait Trait {
25LL | |
26LL | |     type X;
27LL | |
28LL | | }
29   | |_^
30
31error: implementation has missing stability attribute
32  --> $DIR/issue-113860-2.rs:10:1
33   |
34LL | / impl Trait for u8 {
35LL | |
36LL | |     pub(self) type X = Self;
37LL | |
38LL | | }
39   | |_^
40
41error: associated type has missing stability attribute
42  --> $DIR/issue-113860-2.rs:6:5
43   |
44LL |     type X;
45   |     ^^^^^^^
46
47error: aborting due to 5 previous errors
48
49For more information about this error, try `rustc --explain E0449`.