]> git.proxmox.com Git - rustc.git/blame - src/test/ui/proc-macro/pub-at-crate-root.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / proc-macro / pub-at-crate-root.stderr
CommitLineData
60c5eb7d 1error: `proc-macro` crate types currently cannot export any items other than functions tagged with `#[proc_macro]`, `#[proc_macro_derive]`, or `#[proc_macro_attribute]`
0731742a
XL
2 --> $DIR/pub-at-crate-root.rs:8:1
3 |
ba9703b0
XL
4LL | pub mod a {
5 | ^^^^^^^^^
0731742a
XL
6
7error: 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 |
ba9703b0
XL
10LL | pub fn bar(a: TokenStream) -> TokenStream {
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0731742a
XL
12
13error: functions tagged with `#[proc_macro_derive]` must be `pub`
14 --> $DIR/pub-at-crate-root.rs:19:1
15 |
ba9703b0
XL
16LL | fn bar(a: proc_macro::TokenStream) -> proc_macro::TokenStream {
17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0731742a
XL
18
19error: aborting due to 3 previous errors
20