rust/tests/ui/proc-macro/visibility-path.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
525 B
Plaintext
Raw Normal View History

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