]> git.lizzy.rs Git - rust.git/blob - src/test/ui/proc-macro/attr-invalid-exprs.stderr
normalize stderr
[rust.git] / src / test / ui / proc-macro / attr-invalid-exprs.stderr
1 error: expected expression, found end of macro arguments
2   --> $DIR/attr-invalid-exprs.rs:12:13
3    |
4 LL |     let _ = #[no_output] "Hello, world!";
5    |             ^^^^^^^^^^^^
6
7 error: macro expansion ignores token `,` and any following
8   --> $DIR/attr-invalid-exprs.rs:15:13
9    |
10 LL |     let _ = #[duplicate] "Hello, world!";
11    |             ^^^^^^^^^^^^- help: you might be missing a semicolon here: `;`
12    |             |
13    |             caused by the macro expansion here
14    |
15    = note: the usage of `duplicate!` is likely invalid in expression context
16
17 error: macro expansion ignores token `,` and any following
18   --> $DIR/attr-invalid-exprs.rs:24:9
19    |
20 LL |         #[duplicate]
21    |         ^^^^^^^^^^^^- help: you might be missing a semicolon here: `;`
22    |         |
23    |         caused by the macro expansion here
24    |
25    = note: the usage of `duplicate!` is likely invalid in expression context
26
27 error: aborting due to 3 previous errors
28