fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
946 B32 linesraw
1error: arguments to macro_use are not allowed here
2  --> $DIR/issue-43106-gating-of-macro_use.rs:6:1
3   |
4LL | #![macro_use(my_macro)]
5   | ^^^^^^^^^^^^^^^^^^^^^^^
6
7error: arguments to macro_use are not allowed here
8  --> $DIR/issue-43106-gating-of-macro_use.rs:9:1
9   |
10LL | #[macro_use(my_macro)]
11   | ^^^^^^^^^^^^^^^^^^^^^^
12
13error: arguments to macro_use are not allowed here
14  --> $DIR/issue-43106-gating-of-macro_use.rs:12:17
15   |
16LL |     mod inner { #![macro_use(my_macro)] }
17   |                 ^^^^^^^^^^^^^^^^^^^^^^^
18
19error: malformed `macro_use` attribute input
20  --> $DIR/issue-43106-gating-of-macro_use.rs:15:5
21   |
22LL |     #[macro_use = "2700"] struct S;
23   |     ^^^^^^^^^^^^^^^^^^^^^
24help: the following are the possible correct uses
25   |
26LL |     #[macro_use] struct S;
27   |     ^^^^^^^^^^^^
28LL |     #[macro_use(name1, name2, ...)] struct S;
29   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30
31error: aborting due to 4 previous errors
32