mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
15 lines
525 B
Plaintext
15 lines
525 B
Plaintext
error: functions tagged with `#[proc_macro]` must be `pub`
|
|
--> $DIR/visibility-path.rs:12:1
|
|
|
|
|
LL | pub(self) fn outer(input: TokenStream) -> TokenStream {
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: functions tagged with `#[proc_macro]` must currently reside in the root of the crate
|
|
--> $DIR/visibility-path.rs:21:5
|
|
|
|
|
LL | pub(super) fn inner(input: TokenStream) -> TokenStream {
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 2 previous errors
|
|
|