2018-10-20 23:36:17 +03:00
|
|
|
error: can't qualify macro invocation with `pub`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/pub-item-macro.rs:8:5
|
2018-10-20 23:36:17 +03:00
|
|
|
|
|
|
|
|
LL | pub priv_x!(); //~ ERROR can't qualify macro invocation with `pub`
|
|
|
|
| ^^^
|
|
|
|
...
|
|
|
|
LL | pub_x!();
|
|
|
|
| --------- in this macro invocation
|
|
|
|
|
|
|
|
|
= help: try adjusting the macro to put `pub` inside the invocation
|
|
|
|
|
2018-12-16 20:23:27 +03:00
|
|
|
error[E0603]: static `x` is private
|
2018-12-27 03:07:00 +03:00
|
|
|
--> $DIR/pub-item-macro.rs:17:23
|
2018-12-16 20:23:27 +03:00
|
|
|
|
|
|
|
|
LL | let y: u32 = foo::x; //~ ERROR static `x` is private
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2018-10-20 23:36:17 +03:00
|
|
|
|
2018-12-16 20:23:27 +03:00
|
|
|
For more information about this error, try `rustc --explain E0603`.
|