summaryrefslogtreecommitdiffstats
path: root/tests/ui/privacy/private-variant-reexport.stderr
blob: d73bd1a8cc29f1012b9934c9b8a81d5733c6aee4 (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
error[E0364]: `V` is only public within the crate, and cannot be re-exported outside
  --> $DIR/private-variant-reexport.rs:2:13
   |
LL |     pub use ::E::V;
   |             ^^^^^^
   |
note: consider marking `V` as `pub` in the imported module
  --> $DIR/private-variant-reexport.rs:2:13
   |
LL |     pub use ::E::V;
   |             ^^^^^^

error[E0364]: `V` is only public within the crate, and cannot be re-exported outside
  --> $DIR/private-variant-reexport.rs:6:19
   |
LL |     pub use ::E::{V};
   |                   ^
   |
note: consider marking `V` as `pub` in the imported module
  --> $DIR/private-variant-reexport.rs:6:19
   |
LL |     pub use ::E::{V};
   |                   ^

error[E0365]: `V` is only public within the crate, and cannot be re-exported outside
  --> $DIR/private-variant-reexport.rs:10:22
   |
LL |     pub use ::E::V::{self};
   |                      ^^^^ re-export of crate public `V`
   |
   = note: consider declaring type or module `V` with `pub`

error: glob import doesn't reexport anything with visibility `pub` because no imported item is public enough
  --> $DIR/private-variant-reexport.rs:15:13
   |
LL |     pub use ::E::*;
   |             ^^^^^^
   |
note: the most public imported item is `pub(crate)`
  --> $DIR/private-variant-reexport.rs:15:13
   |
LL |     pub use ::E::*;
   |             ^^^^^^
   = help: reduce the glob import's visibility or increase visibility of imported items
note: the lint level is defined here
  --> $DIR/private-variant-reexport.rs:13:8
   |
LL | #[deny(unused_imports)]
   |        ^^^^^^^^^^^^^^

error: unused import: `::E::*`
  --> $DIR/private-variant-reexport.rs:15:13
   |
LL |     pub use ::E::*;
   |             ^^^^^^

error: aborting due to 5 previous errors

Some errors have detailed explanations: E0364, E0365.
For more information about an error, try `rustc --explain E0364`.