]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/exports.stderr
Rollup merge of #106591 - Ezrashaw:attempted-integer-identifer, r=Estebank
[rust.git] / tests / ui / proc-macro / exports.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/exports.rs:7:1
3    |
4 LL | pub fn a() {}
5    | ^^^^^^^^^^
6
7 error: `proc-macro` crate types currently cannot export any items other than functions tagged with `#[proc_macro]`, `#[proc_macro_derive]`, or `#[proc_macro_attribute]`
8   --> $DIR/exports.rs:8:1
9    |
10 LL | pub struct B;
11    | ^^^^^^^^^^^^^
12
13 error: `proc-macro` crate types currently cannot export any items other than functions tagged with `#[proc_macro]`, `#[proc_macro_derive]`, or `#[proc_macro_attribute]`
14   --> $DIR/exports.rs:9:1
15    |
16 LL | pub enum C {}
17    | ^^^^^^^^^^
18
19 error: `proc-macro` crate types currently cannot export any items other than functions tagged with `#[proc_macro]`, `#[proc_macro_derive]`, or `#[proc_macro_attribute]`
20   --> $DIR/exports.rs:10:1
21    |
22 LL | pub mod d {}
23    | ^^^^^^^^^
24
25 error: aborting due to 4 previous errors
26