]> git.proxmox.com Git - rustc.git/blame - src/test/ui/privacy/privacy1.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / privacy / privacy1.stderr
CommitLineData
b7449926 1error[E0603]: module `baz` is private
0731742a 2 --> $DIR/privacy1.rs:132:18
b7449926
XL
3 |
4LL | use bar::baz::{foo, bar};
ba9703b0 5 | ^^^ private module
dfeec247
XL
6 |
7note: the module `baz` is defined here
8 --> $DIR/privacy1.rs:50:5
9 |
10LL | mod baz {
11 | ^^^^^^^
12
13error[E0603]: module `baz` is private
14 --> $DIR/privacy1.rs:132:18
15 |
16LL | use bar::baz::{foo, bar};
ba9703b0 17 | ^^^ private module
dfeec247
XL
18 |
19note: the module `baz` is defined here
20 --> $DIR/privacy1.rs:50:5
21 |
22LL | mod baz {
23 | ^^^^^^^
b7449926
XL
24
25error[E0603]: module `baz` is private
dfeec247 26 --> $DIR/privacy1.rs:141:18
b7449926
XL
27 |
28LL | use bar::baz;
ba9703b0 29 | ^^^ private module
dfeec247
XL
30 |
31note: the module `baz` is defined here
32 --> $DIR/privacy1.rs:50:5
33 |
34LL | mod baz {
35 | ^^^^^^^
b7449926
XL
36
37error[E0603]: module `i` is private
dfeec247 38 --> $DIR/privacy1.rs:165:20
b7449926 39 |
532ac7d7 40LL | use self::foo::i::A;
ba9703b0 41 | ^ private module
dfeec247
XL
42 |
43note: the module `i` is defined here
44 --> $DIR/privacy1.rs:170:9
45 |
46LL | mod i {
47 | ^^^^^
b7449926
XL
48
49error[E0603]: module `baz` is private
0731742a 50 --> $DIR/privacy1.rs:104:16
b7449926 51 |
532ac7d7 52LL | ::bar::baz::A::foo();
ba9703b0 53 | ^^^ private module
dfeec247
XL
54 |
55note: the module `baz` is defined here
56 --> $DIR/privacy1.rs:50:5
57 |
58LL | mod baz {
59 | ^^^^^^^
b7449926
XL
60
61error[E0603]: module `baz` is private
0731742a 62 --> $DIR/privacy1.rs:105:16
b7449926 63 |
532ac7d7 64LL | ::bar::baz::A::bar();
ba9703b0 65 | ^^^ private module
dfeec247
XL
66 |
67note: the module `baz` is defined here
68 --> $DIR/privacy1.rs:50:5
69 |
70LL | mod baz {
71 | ^^^^^^^
b7449926
XL
72
73error[E0603]: module `baz` is private
0731742a 74 --> $DIR/privacy1.rs:107:16
b7449926 75 |
532ac7d7 76LL | ::bar::baz::A.foo2();
ba9703b0 77 | ^^^ private module
dfeec247
XL
78 |
79note: the module `baz` is defined here
80 --> $DIR/privacy1.rs:50:5
81 |
82LL | mod baz {
83 | ^^^^^^^
b7449926
XL
84
85error[E0603]: module `baz` is private
0731742a 86 --> $DIR/privacy1.rs:108:16
b7449926 87 |
532ac7d7 88LL | ::bar::baz::A.bar2();
ba9703b0 89 | ^^^ private module
dfeec247
XL
90 |
91note: the module `baz` is defined here
92 --> $DIR/privacy1.rs:50:5
93 |
94LL | mod baz {
95 | ^^^^^^^
b7449926
XL
96
97error[E0603]: trait `B` is private
0731742a 98 --> $DIR/privacy1.rs:112:16
b7449926 99 |
532ac7d7 100LL | ::bar::B::foo();
ba9703b0 101 | ^ private trait
dfeec247
XL
102 |
103note: the trait `B` is defined here
104 --> $DIR/privacy1.rs:40:5
105 |
106LL | trait B {
107 | ^^^^^^^
b7449926
XL
108
109error[E0603]: function `epriv` is private
0731742a 110 --> $DIR/privacy1.rs:118:20
b7449926 111 |
532ac7d7 112LL | ::bar::epriv();
ba9703b0 113 | ^^^^^ private function
dfeec247
XL
114 |
115note: the function `epriv` is defined here
116 --> $DIR/privacy1.rs:65:9
117 |
118LL | fn epriv();
119 | ^^^^^^^^^^^
b7449926
XL
120
121error[E0603]: module `baz` is private
0731742a 122 --> $DIR/privacy1.rs:127:16
b7449926 123 |
532ac7d7 124LL | ::bar::baz::foo();
ba9703b0 125 | ^^^ private module
dfeec247
XL
126 |
127note: the module `baz` is defined here
128 --> $DIR/privacy1.rs:50:5
129 |
130LL | mod baz {
131 | ^^^^^^^
b7449926
XL
132
133error[E0603]: module `baz` is private
0731742a 134 --> $DIR/privacy1.rs:128:16
b7449926 135 |
532ac7d7 136LL | ::bar::baz::bar();
ba9703b0 137 | ^^^ private module
dfeec247
XL
138 |
139note: the module `baz` is defined here
140 --> $DIR/privacy1.rs:50:5
141 |
142LL | mod baz {
143 | ^^^^^^^
b7449926
XL
144
145error[E0603]: trait `B` is private
dfeec247 146 --> $DIR/privacy1.rs:157:17
b7449926
XL
147 |
148LL | impl ::bar::B for f32 { fn foo() -> f32 { 1.0 } }
ba9703b0 149 | ^ private trait
dfeec247
XL
150 |
151note: the trait `B` is defined here
152 --> $DIR/privacy1.rs:40:5
153 |
154LL | trait B {
155 | ^^^^^^^
b7449926 156
ba9703b0
XL
157error[E0624]: associated function `bar` is private
158 --> $DIR/privacy1.rs:77:23
b7449926 159 |
532ac7d7 160LL | self::baz::A::bar();
ba9703b0 161 | ^^^ private associated function
b7449926 162
ba9703b0
XL
163error[E0624]: associated function `bar` is private
164 --> $DIR/privacy1.rs:95:13
b7449926 165 |
532ac7d7 166LL | bar::A::bar();
ba9703b0 167 | ^^^ private associated function
b7449926 168
ba9703b0
XL
169error[E0624]: associated function `bar` is private
170 --> $DIR/privacy1.rs:102:19
b7449926 171 |
532ac7d7 172LL | ::bar::A::bar();
ba9703b0 173 | ^^^ private associated function
b7449926 174
ba9703b0
XL
175error[E0624]: associated function `bar` is private
176 --> $DIR/privacy1.rs:105:24
b7449926 177 |
532ac7d7 178LL | ::bar::baz::A::bar();
ba9703b0 179 | ^^^ private associated function
b7449926 180
ba9703b0 181error[E0624]: associated function `bar2` is private
0731742a 182 --> $DIR/privacy1.rs:108:23
b7449926 183 |
532ac7d7 184LL | ::bar::baz::A.bar2();
ba9703b0 185 | ^^^^ private associated function
b7449926 186
dfeec247 187error: aborting due to 18 previous errors
b7449926 188
48663c56 189Some errors have detailed explanations: E0603, E0624.
b7449926 190For more information about an error, try `rustc --explain E0603`.