fork/rust
git clone https://git.julia.blue/fork/rust
b8cedc00407
1.42.0
1error: can't qualify macro invocation with `pub` 2 --> $DIR/pub-item-macro.rs:8:5 3 | 4LL | pub priv_x!(); 5 | ^^^ 6... 7LL | pub_x!(); 8 | --------- in this macro invocation 9 | 10 = help: try adjusting the macro to put `pub` inside the invocation 11 12error[E0603]: static `x` is private 13 --> $DIR/pub-item-macro.rs:17:23 14 | 15LL | let y: u32 = foo::x; 16 | ^ this static is private 17 | 18note: the static `x` is defined here 19 --> $DIR/pub-item-macro.rs:4:5 20 | 21LL | static x: u32 = 0; 22 | ^^^^^^^^^^^^^^^^^^ 23... 24LL | pub_x!(); 25 | --------- in this macro invocation 26 27error: aborting due to 2 previous errors 28 29For more information about this error, try `rustc --explain E0603`.