]> git.lizzy.rs Git - rust.git/blob - tests/ui/privacy/macro-private-reexport.stderr
add tests for 107090
[rust.git] / tests / ui / privacy / macro-private-reexport.stderr
1 error[E0364]: `bar` is only public within the crate, and cannot be re-exported outside
2   --> $DIR/macro-private-reexport.rs:10:13
3    |
4 LL |     pub use bar as _;
5    |             ^^^^^^^^
6    |
7 help: consider adding a `#[macro_export]` to the macro in the imported module
8   --> $DIR/macro-private-reexport.rs:6:5
9    |
10 LL | /     macro_rules! bar {
11 LL | |         () => {};
12 LL | |     }
13    | |_____^
14
15 error[E0364]: `baz` is private, and cannot be re-exported
16   --> $DIR/macro-private-reexport.rs:14:13
17    |
18 LL |     pub use baz as _;
19    |             ^^^^^^^^
20    |
21 note: consider marking `baz` as `pub` in the imported module
22   --> $DIR/macro-private-reexport.rs:14:13
23    |
24 LL |     pub use baz as _;
25    |             ^^^^^^^^
26
27 error: aborting due to 2 previous errors
28
29 For more information about this error, try `rustc --explain E0364`.