]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/visibility-path.stderr
Rollup merge of #107532 - compiler-errors:erase-regions-in-uninhabited, r=jackh726
[rust.git] / tests / ui / proc-macro / visibility-path.stderr
1 error: functions tagged with `#[proc_macro]` must be `pub`
2   --> $DIR/visibility-path.rs:12:1
3    |
4 LL | pub(self) fn outer(input: TokenStream) -> TokenStream {
5    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
7 error: functions tagged with `#[proc_macro]` must currently reside in the root of the crate
8   --> $DIR/visibility-path.rs:21:5
9    |
10 LL |     pub(super) fn inner(input: TokenStream) -> TokenStream {
11    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
13 error: aborting due to 2 previous errors
14