]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/issue-43106-gating-of-macro_use.stderr
parser will not give wrong help message for 'public'
[rust.git] / src / test / ui / feature-gates / issue-43106-gating-of-macro_use.stderr
1 error: arguments to `macro_use` are not allowed here
2   --> $DIR/issue-43106-gating-of-macro_use.rs:12:17
3    |
4 LL |     mod inner { #![macro_use(my_macro)] }
5    |                 ^^^^^^^^^^^^^^^^^^^^^^^
6
7 error: arguments to `macro_use` are not allowed here
8   --> $DIR/issue-43106-gating-of-macro_use.rs:9:1
9    |
10 LL | #[macro_use(my_macro)]
11    | ^^^^^^^^^^^^^^^^^^^^^^
12
13 error: arguments to `macro_use` are not allowed here
14   --> $DIR/issue-43106-gating-of-macro_use.rs:6:1
15    |
16 LL | #![macro_use(my_macro)]
17    | ^^^^^^^^^^^^^^^^^^^^^^^
18
19 error: malformed `macro_use` attribute input
20   --> $DIR/issue-43106-gating-of-macro_use.rs:15:5
21    |
22 LL |     #[macro_use = "2700"] struct S;
23    |     ^^^^^^^^^^^^^^^^^^^^^
24    |
25 help: the following are the possible correct uses
26    |
27 LL |     #[macro_use(name1, name2, ...)] struct S;
28    |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
29 LL |     #[macro_use] struct S;
30    |     ~~~~~~~~~~~~
31
32 error: aborting due to 4 previous errors
33