diff options
Diffstat (limited to 'tests/ui/proc-macro/visibility-path.stderr')
-rw-r--r-- | tests/ui/proc-macro/visibility-path.stderr | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/proc-macro/visibility-path.stderr b/tests/ui/proc-macro/visibility-path.stderr new file mode 100644 index 000000000..1a73cc196 --- /dev/null +++ b/tests/ui/proc-macro/visibility-path.stderr @@ -0,0 +1,14 @@ +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 + |