summary refs log tree commit diff
path: root/src/test/ui/privacy/restricted/test.stderr
blob: 40512a34bd95991cc0b5d9e3cdd6e74d63082ca2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
error[E0433]: failed to resolve: maybe a missing crate `bad`?
  --> $DIR/test.rs:50:12
   |
LL |     pub(in bad::path) mod m1 {}
   |            ^^^ maybe a missing crate `bad`?

error[E0742]: visibilities can only be restricted to ancestor modules
  --> $DIR/test.rs:51:12
   |
LL |     pub(in foo) mod m2 {}
   |            ^^^

error[E0364]: `f` is private, and cannot be re-exported
  --> $DIR/test.rs:21:24
   |
LL |         pub(super) use foo::bar::f as g;
   |                        ^^^^^^^^^^^^^^^^
   |
note: consider marking `f` as `pub` in the imported module
  --> $DIR/test.rs:21:24
   |
LL |         pub(super) use foo::bar::f as g;
   |                        ^^^^^^^^^^^^^^^^

error[E0603]: struct `Crate` is private
  --> $DIR/test.rs:38:25
   |
LL |     use pub_restricted::Crate;
   |                         ^^^^^ private struct
   |
note: the struct `Crate` is defined here
  --> $DIR/auxiliary/pub_restricted.rs:3:1
   |
LL | pub(crate) struct Crate;
   | ^^^^^^^^^^^^^^^^^^^^^^^^

error[E0603]: function `f` is private
  --> $DIR/test.rs:30:19
   |
LL |     use foo::bar::f;
   |                   ^ private function
   |
note: the function `f` is defined here
  --> $DIR/test.rs:8:9
   |
LL |         pub(super) fn f() {}
   |         ^^^^^^^^^^^^^^^^^

error[E0616]: field `x` of struct `foo::bar::S` is private
  --> $DIR/test.rs:31:18
   |
LL |     S::default().x;
   |                  ^ private field

error[E0624]: associated function `f` is private
  --> $DIR/test.rs:32:18
   |
LL |     S::default().f();
   |                  ^ private associated function

error[E0624]: associated function `g` is private
  --> $DIR/test.rs:33:8
   |
LL |     S::g();
   |        ^ private associated function

error[E0616]: field `y` of struct `pub_restricted::Universe` is private
  --> $DIR/test.rs:42:15
   |
LL |     let _ = u.y;
   |               ^ private field

error[E0616]: field `z` of struct `pub_restricted::Universe` is private
  --> $DIR/test.rs:43:15
   |
LL |     let _ = u.z;
   |               ^ private field

error[E0624]: associated function `g` is private
  --> $DIR/test.rs:45:7
   |
LL |     u.g();
   |       ^ private associated function

error[E0624]: associated function `h` is private
  --> $DIR/test.rs:46:7
   |
LL |     u.h();
   |       ^ private associated function

error: aborting due to 12 previous errors

Some errors have detailed explanations: E0364, E0433, E0603, E0616, E0624, E0742.
For more information about an error, try `rustc --explain E0364`.