fork/rust

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

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

master
3.8 KiB133 linesraw
1error[E0603]: static `j` is private
2  --> $DIR/xcrate-private-by-default.rs:23:29
3   |
4LL |     static_priv_by_default::j;
5   |                             ^ private static
6   |
7note: the static `j` is defined here
8  --> $DIR/auxiliary/static_priv_by_default.rs:47:1
9   |
10LL | static j: isize = 0;
11   | ^^^^^^^^^^^^^^^
12
13error[E0603]: function `k` is private
14  --> $DIR/xcrate-private-by-default.rs:25:29
15   |
16LL |     static_priv_by_default::k;
17   |                             ^ private function
18   |
19note: the function `k` is defined here
20  --> $DIR/auxiliary/static_priv_by_default.rs:48:1
21   |
22LL | fn k() {}
23   | ^^^^^^
24
25error[E0603]: unit struct `l` is private
26  --> $DIR/xcrate-private-by-default.rs:27:29
27   |
28LL |     static_priv_by_default::l;
29   |                             ^ private unit struct
30   |
31note: the unit struct `l` is defined here
32  --> $DIR/auxiliary/static_priv_by_default.rs:49:1
33   |
34LL | struct l;
35   | ^^^^^^^^
36
37error[E0603]: enum `m` is private
38  --> $DIR/xcrate-private-by-default.rs:29:35
39   |
40LL |     foo::<static_priv_by_default::m>();
41   |                                   ^ private enum
42   |
43note: the enum `m` is defined here
44  --> $DIR/auxiliary/static_priv_by_default.rs:50:1
45   |
46LL | enum m {}
47   | ^^^^^^
48
49error[E0603]: type alias `n` is private
50  --> $DIR/xcrate-private-by-default.rs:31:35
51   |
52LL |     foo::<static_priv_by_default::n>();
53   |                                   ^ private type alias
54   |
55note: the type alias `n` is defined here
56  --> $DIR/auxiliary/static_priv_by_default.rs:51:1
57   |
58LL | type n = isize;
59   | ^^^^^^
60
61error[E0603]: module `foo` is private
62  --> $DIR/xcrate-private-by-default.rs:35:29
63   |
64LL |     static_priv_by_default::foo::a;
65   |                             ^^^  - static `a` is not publicly re-exported
66   |                             |
67   |                             private module
68   |
69note: the module `foo` is defined here
70  --> $DIR/auxiliary/static_priv_by_default.rs:12:1
71   |
72LL | mod foo {
73   | ^^^^^^^
74
75error[E0603]: module `foo` is private
76  --> $DIR/xcrate-private-by-default.rs:37:29
77   |
78LL |     static_priv_by_default::foo::b;
79   |                             ^^^  - function `b` is not publicly re-exported
80   |                             |
81   |                             private module
82   |
83note: the module `foo` is defined here
84  --> $DIR/auxiliary/static_priv_by_default.rs:12:1
85   |
86LL | mod foo {
87   | ^^^^^^^
88
89error[E0603]: module `foo` is private
90  --> $DIR/xcrate-private-by-default.rs:39:29
91   |
92LL |     static_priv_by_default::foo::c;
93   |                             ^^^  - unit struct `c` is not publicly re-exported
94   |                             |
95   |                             private module
96   |
97note: the module `foo` is defined here
98  --> $DIR/auxiliary/static_priv_by_default.rs:12:1
99   |
100LL | mod foo {
101   | ^^^^^^^
102
103error[E0603]: module `foo` is private
104  --> $DIR/xcrate-private-by-default.rs:41:35
105   |
106LL |     foo::<static_priv_by_default::foo::d>();
107   |                                   ^^^  - enum `d` is not publicly re-exported
108   |                                   |
109   |                                   private module
110   |
111note: the module `foo` is defined here
112  --> $DIR/auxiliary/static_priv_by_default.rs:12:1
113   |
114LL | mod foo {
115   | ^^^^^^^
116
117error[E0603]: module `foo` is private
118  --> $DIR/xcrate-private-by-default.rs:43:35
119   |
120LL |     foo::<static_priv_by_default::foo::e>();
121   |                                   ^^^  - type alias `e` is not publicly re-exported
122   |                                   |
123   |                                   private module
124   |
125note: the module `foo` is defined here
126  --> $DIR/auxiliary/static_priv_by_default.rs:12:1
127   |
128LL | mod foo {
129   | ^^^^^^^
130
131error: aborting due to 10 previous errors
132
133For more information about this error, try `rustc --explain E0603`.