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