summaryrefslogtreecommitdiffstats
path: root/tests/ui/proc-macro/visibility-path.stderr
blob: 1a73cc1963f9c551b0d0ffe98c05c77119fb9d6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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