]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/pub-at-crate-root.stderr
Rollup merge of #106591 - Ezrashaw:attempted-integer-identifer, r=Estebank
[rust.git] / tests / ui / proc-macro / pub-at-crate-root.stderr
1 error: `proc-macro` crate types currently cannot export any items other than functions tagged with `#[proc_macro]`, `#[proc_macro_derive]`, or `#[proc_macro_attribute]`
2   --> $DIR/pub-at-crate-root.rs:8:1
3    |
4 LL | pub mod a {
5    | ^^^^^^^^^
6
7 error: functions tagged with `#[proc_macro_derive]` must currently reside in the root of the crate
8   --> $DIR/pub-at-crate-root.rs:12:5
9    |
10 LL |     pub fn bar(a: TokenStream) -> TokenStream {
11    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
13 error: functions tagged with `#[proc_macro_derive]` must be `pub`
14   --> $DIR/pub-at-crate-root.rs:19:1
15    |
16 LL | fn bar(a: proc_macro::TokenStream) -> proc_macro::TokenStream {
17    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18
19 error: aborting due to 3 previous errors
20