1
Fork 0
rust/src/test/ui/parser/macro/pub-item-macro.stderr

21 lines
597 B
Text
Raw Normal View History

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
error[E0603]: static `x` is private
2018-12-27 03:07:00 +03:00
--> $DIR/pub-item-macro.rs:17:23
|
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
For more information about this error, try `rustc --explain E0603`.