]> git.lizzy.rs Git - rust.git/blob - src/test/ui/hygiene/privacy-early.stderr
Rollup merge of #90202 - matthewjasper:xcrate-hygiene, r=petrochenkov
[rust.git] / src / test / ui / hygiene / privacy-early.stderr
1 error[E0364]: `f` is private, and cannot be re-exported
2   --> $DIR/privacy-early.rs:10:13
3    |
4 LL |         use f as g;
5    |             ^^^^^^
6 ...
7 LL |     foo::m!();
8    |     --------- in this macro invocation
9    |
10 note: consider marking `f` as `pub` in the imported module
11   --> $DIR/privacy-early.rs:10:13
12    |
13 LL |         use f as g;
14    |             ^^^^^^
15 ...
16 LL |     foo::m!();
17    |     --------- in this macro invocation
18    = note: this error originates in the macro `foo::m` (in Nightly builds, run with -Z macro-backtrace for more info)
19
20 error: aborting due to previous error
21
22 For more information about this error, try `rustc --explain E0364`.