fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
2.3 KiB94 linesraw
1error[E0433]: failed to resolve: maybe a missing crate `bad`?
2  --> $DIR/test.rs:50:12
3   |
4LL |     pub(in bad::path) mod m1 {}
5   |            ^^^ maybe a missing crate `bad`?
6
7error[E0742]: visibilities can only be restricted to ancestor modules
8  --> $DIR/test.rs:51:12
9   |
10LL |     pub(in foo) mod m2 {}
11   |            ^^^
12
13error[E0364]: `f` is private, and cannot be re-exported
14  --> $DIR/test.rs:21:24
15   |
16LL |         pub(super) use foo::bar::f as g;
17   |                        ^^^^^^^^^^^^^^^^
18   |
19note: consider marking `f` as `pub` in the imported module
20  --> $DIR/test.rs:21:24
21   |
22LL |         pub(super) use foo::bar::f as g;
23   |                        ^^^^^^^^^^^^^^^^
24
25error[E0603]: struct `Crate` is private
26  --> $DIR/test.rs:38:25
27   |
28LL |     use pub_restricted::Crate;
29   |                         ^^^^^ this struct is private
30   |
31note: the struct `Crate` is defined here
32  --> $DIR/auxiliary/pub_restricted.rs:3:1
33   |
34LL | pub(crate) struct Crate;
35   | ^^^^^^^^^^^^^^^^^^^^^^^^
36
37error[E0603]: function `f` is private
38  --> $DIR/test.rs:30:19
39   |
40LL |     use foo::bar::f;
41   |                   ^ this function is private
42   |
43note: the function `f` is defined here
44  --> $DIR/test.rs:8:9
45   |
46LL |         pub(super) fn f() {}
47   |         ^^^^^^^^^^^^^^^^^
48
49error[E0616]: field `x` of struct `foo::bar::S` is private
50  --> $DIR/test.rs:31:5
51   |
52LL |     S::default().x;
53   |     ^^^^^^^^^^^^^^
54
55error[E0624]: method `f` is private
56  --> $DIR/test.rs:32:18
57   |
58LL |     S::default().f();
59   |                  ^
60
61error[E0624]: method `g` is private
62  --> $DIR/test.rs:33:5
63   |
64LL |     S::g();
65   |     ^^^^
66
67error[E0616]: field `y` of struct `pub_restricted::Universe` is private
68  --> $DIR/test.rs:42:13
69   |
70LL |     let _ = u.y;
71   |             ^^^
72
73error[E0616]: field `z` of struct `pub_restricted::Universe` is private
74  --> $DIR/test.rs:43:13
75   |
76LL |     let _ = u.z;
77   |             ^^^
78
79error[E0624]: method `g` is private
80  --> $DIR/test.rs:45:7
81   |
82LL |     u.g();
83   |       ^
84
85error[E0624]: method `h` is private
86  --> $DIR/test.rs:46:7
87   |
88LL |     u.h();
89   |       ^
90
91error: aborting due to 12 previous errors
92
93Some errors have detailed explanations: E0364, E0433, E0603, E0616, E0624, E0742.
94For more information about an error, try `rustc --explain E0364`.