2018-10-20 15:36:17 -05:00
|
|
|
error: can't qualify macro invocation with `pub`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/pub-item-macro.rs:8:5
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | pub priv_x!();
|
2018-10-20 15:36:17 -05:00
|
|
|
| ^^^
|
|
|
|
...
|
|
|
|
LL | pub_x!();
|
|
|
|
| --------- in this macro invocation
|
|
|
|
|
|
|
|
|
= help: try adjusting the macro to put `pub` inside the invocation
|
|
|
|
|
2018-12-16 11:23:27 -06:00
|
|
|
error[E0603]: static `x` is private
|
2018-12-26 18:07:00 -06:00
|
|
|
--> $DIR/pub-item-macro.rs:17:23
|
2018-12-16 11:23:27 -06:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let y: u32 = foo::x;
|
2020-01-12 07:04:03 -06:00
|
|
|
| ^ this static is private
|
|
|
|
|
|
|
|
|
note: the static `x` is defined here
|
|
|
|
--> $DIR/pub-item-macro.rs:4:5
|
|
|
|
|
|
|
|
|
LL | static x: u32 = 0;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
...
|
|
|
|
LL | pub_x!();
|
|
|
|
| --------- in this macro invocation
|
2018-12-16 11:23:27 -06:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2018-10-20 15:36:17 -05:00
|
|
|
|
2018-12-16 11:23:27 -06:00
|
|
|
For more information about this error, try `rustc --explain E0603`.
|