]> git.lizzy.rs Git - rust.git/blob - tests/ui/privacy/private-variant-reexport.stderr
Rollup merge of #106664 - chenyukang:yukang/fix-106597-remove-lseek, r=cuviper
[rust.git] / tests / ui / privacy / private-variant-reexport.stderr
1 error[E0364]: `V` is only public within the crate, and cannot be re-exported outside
2   --> $DIR/private-variant-reexport.rs:2:13
3    |
4 LL |     pub use ::E::V;
5    |             ^^^^^^
6    |
7 note: consider marking `V` as `pub` in the imported module
8   --> $DIR/private-variant-reexport.rs:2:13
9    |
10 LL |     pub use ::E::V;
11    |             ^^^^^^
12
13 error[E0364]: `V` is only public within the crate, and cannot be re-exported outside
14   --> $DIR/private-variant-reexport.rs:6:19
15    |
16 LL |     pub use ::E::{V};
17    |                   ^
18    |
19 note: consider marking `V` as `pub` in the imported module
20   --> $DIR/private-variant-reexport.rs:6:19
21    |
22 LL |     pub use ::E::{V};
23    |                   ^
24
25 error[E0365]: `V` is only public within the crate, and cannot be re-exported outside
26   --> $DIR/private-variant-reexport.rs:10:22
27    |
28 LL |     pub use ::E::V::{self};
29    |                      ^^^^ re-export of crate public `V`
30    |
31    = note: consider declaring type or module `V` with `pub`
32
33 error: glob import doesn't reexport anything because no candidate is public enough
34   --> $DIR/private-variant-reexport.rs:15:13
35    |
36 LL |     pub use ::E::*;
37    |             ^^^^^^
38    |
39 note: the lint level is defined here
40   --> $DIR/private-variant-reexport.rs:13:8
41    |
42 LL | #[deny(unused_imports)]
43    |        ^^^^^^^^^^^^^^
44
45 error: aborting due to 4 previous errors
46
47 Some errors have detailed explanations: E0364, E0365.
48 For more information about an error, try `rustc --explain E0364`.