]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/attr-invalid-exprs.stderr
Rollup merge of #106816 - TimNN:rental-remap, r=oli-obj
[rust.git] / tests / 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    |             ^^^^^^^^^^^^ caused by the macro expansion here
12    |
13    = note: the usage of `duplicate!` is likely invalid in expression context
14 help: you might be missing a semicolon here
15    |
16 LL |     let _ = #[duplicate]; "Hello, world!";
17    |                         +
18
19 error: macro expansion ignores token `,` and any following
20   --> $DIR/attr-invalid-exprs.rs:24:9
21    |
22 LL |         #[duplicate]
23    |         ^^^^^^^^^^^^ caused by the macro expansion here
24    |
25    = note: the usage of `duplicate!` is likely invalid in expression context
26 help: you might be missing a semicolon here
27    |
28 LL |         #[duplicate];
29    |                     +
30
31 error: aborting due to 3 previous errors
32