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