1 error: can't qualify macro invocation with `pub`
2 --> $DIR/pub-item-macro.rs:10:5
5 | ^^^ help: remove the visibility
8 | -------- in this macro invocation
10 = help: try adjusting the macro to put `pub` inside the invocation
11 = note: this error originates in the macro `pub_x` (in Nightly builds, run with -Z macro-backtrace for more info)
13 error[E0603]: static `x` is private
14 --> $DIR/pub-item-macro.rs:20:23
16 LL | let y: u32 = foo::x;
19 note: the static `x` is defined here
20 --> $DIR/pub-item-macro.rs:5:9
22 LL | static x: u32 = 0;
26 | -------- in this macro invocation
27 = note: this error originates in the macro `priv_x` (in Nightly builds, run with -Z macro-backtrace for more info)
29 error: aborting due to 2 previous errors
31 For more information about this error, try `rustc --explain E0603`.