You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/test/ui/proc-macro/exports.stderr
+3-3
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@ error: `proc-macro` crate types currently cannot export any items other than fun
2
2
--> $DIR/exports.rs:7:1
3
3
|
4
4
LL | pub fn a() {}
5
-
| ^^^^^^^^^^^^^
5
+
| ^^^^^^^^^^
6
6
7
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
8
--> $DIR/exports.rs:8:1
@@ -14,13 +14,13 @@ error: `proc-macro` crate types currently cannot export any items other than fun
14
14
--> $DIR/exports.rs:9:1
15
15
|
16
16
LL | pub enum C {}
17
-
| ^^^^^^^^^^^^^
17
+
| ^^^^^^^^^^
18
18
19
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]`
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
2
--> $DIR/pub-at-crate-root.rs:8:1
3
3
|
4
-
LL | / pub mod a {
5
-
LL | | use proc_macro::TokenStream;
6
-
LL | |
7
-
LL | | #[proc_macro_derive(B)]
8
-
... |
9
-
LL | | }
10
-
LL | | }
11
-
| |_^
4
+
LL | pub mod a {
5
+
| ^^^^^^^^^
12
6
13
7
error: functions tagged with `#[proc_macro_derive]` must currently reside in the root of the crate
0 commit comments