11error[E0469]: imported macro not found
2- --> $DIR/invalid-macro-use.rs:51 :13
2+ --> $DIR/invalid-macro-use.rs:53 :13
33 |
44LL | #[macro_use(a)]
55 | ^
66
77error[E0469]: imported macro not found
8- --> $DIR/invalid-macro-use.rs:53 :13
8+ --> $DIR/invalid-macro-use.rs:55 :13
99 |
1010LL | #[macro_use(b)]
1111 | ^
1212
13- error: valid forms for the attribute are `#[ macro_use(name1, name2, ...)]` and `#[macro_use]`
13+ error[E0539]: malformed ` macro_use` attribute input
1414 --> $DIR/invalid-macro-use.rs:4:1
1515 |
1616LL | #[macro_use = 5]
17- | ^^^^^^^^^^^^^^^^
17+ | ^^^^^^^^^^^^^^^^ expected a list or no arguments here
18+ |
19+ = note: for more information, visit <https://doc.rust-lang.org/reference/macros-by-example.html#the-macro_use-attribute>
20+ help: try changing it to one of the following valid forms of the attribute
21+ |
22+ LL - #[macro_use = 5]
23+ LL + #[macro_use(name1, name2, ...)]
24+ |
25+ LL - #[macro_use = 5]
26+ LL + #[macro_use]
27+ |
1828
1929error[E0539]: malformed `macro_use` attribute input
20- --> $DIR/invalid-macro-use.rs:8 :1
30+ --> $DIR/invalid-macro-use.rs:10 :1
2131 |
2232LL | #[macro_use(5)]
2333 | ^^^^^^^^^^^^-^^
@@ -35,7 +45,7 @@ LL + #[macro_use]
3545 |
3646
3747error[E0565]: malformed `macro_use` attribute input
38- --> $DIR/invalid-macro-use.rs:14 :1
48+ --> $DIR/invalid-macro-use.rs:16 :1
3949 |
4050LL | #[macro_use(a = "b")]
4151 | ^^^^^^^^^^^^^^-----^^
@@ -53,7 +63,7 @@ LL + #[macro_use]
5363 |
5464
5565error[E0565]: malformed `macro_use` attribute input
56- --> $DIR/invalid-macro-use.rs:20 :1
66+ --> $DIR/invalid-macro-use.rs:22 :1
5767 |
5868LL | #[macro_use(a(b))]
5969 | ^^^^^^^^^^^^^---^^
@@ -71,7 +81,7 @@ LL + #[macro_use]
7181 |
7282
7383error[E0539]: malformed `macro_use` attribute input
74- --> $DIR/invalid-macro-use.rs:26 :1
84+ --> $DIR/invalid-macro-use.rs:28 :1
7585 |
7686LL | #[macro_use(a::b)]
7787 | ^^^^^^^^^^^^----^^
@@ -89,13 +99,13 @@ LL + #[macro_use]
8999 |
90100
91101error: unused attribute
92- --> $DIR/invalid-macro-use.rs:32 :1
102+ --> $DIR/invalid-macro-use.rs:34 :1
93103 |
94104LL | #[macro_use(a)]
95105 | ^^^^^^^^^^^^^^^ help: remove this attribute
96106 |
97107note: attribute also specified here
98- --> $DIR/invalid-macro-use.rs:34 :1
108+ --> $DIR/invalid-macro-use.rs:36 :1
99109 |
100110LL | #[macro_use]
101111 | ^^^^^^^^^^^^
@@ -106,25 +116,25 @@ LL | #![deny(unused_attributes)]
106116 | ^^^^^^^^^^^^^^^^^
107117
108118error: unused attribute
109- --> $DIR/invalid-macro-use.rs:40 :1
119+ --> $DIR/invalid-macro-use.rs:42 :1
110120 |
111121LL | #[macro_use(a)]
112122 | ^^^^^^^^^^^^^^^ help: remove this attribute
113123 |
114124note: attribute also specified here
115- --> $DIR/invalid-macro-use.rs:38 :1
125+ --> $DIR/invalid-macro-use.rs:40 :1
116126 |
117127LL | #[macro_use]
118128 | ^^^^^^^^^^^^
119129
120130error: unused attribute
121- --> $DIR/invalid-macro-use.rs:46 :1
131+ --> $DIR/invalid-macro-use.rs:48 :1
122132 |
123133LL | #[macro_use]
124134 | ^^^^^^^^^^^^ help: remove this attribute
125135 |
126136note: attribute also specified here
127- --> $DIR/invalid-macro-use.rs:44 :1
137+ --> $DIR/invalid-macro-use.rs:46 :1
128138 |
129139LL | #[macro_use]
130140 | ^^^^^^^^^^^^
0 commit comments