2019-05-21 19:47:23 -05:00
|
|
|
error: expected expression, found end of macro arguments
|
2020-01-31 16:02:31 -06:00
|
|
|
--> $DIR/attr-invalid-exprs.rs:12:13
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
|
|
|
LL | let _ = #[no_output] "Hello, world!";
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: macro expansion ignores token `,` and any following
|
2020-01-31 16:02:31 -06:00
|
|
|
--> $DIR/attr-invalid-exprs.rs:15:13
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
|
|
|
LL | let _ = #[duplicate] "Hello, world!";
|
2022-11-15 07:24:33 -06:00
|
|
|
| ^^^^^^^^^^^^ caused by the macro expansion here
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
|
|
|
= note: the usage of `duplicate!` is likely invalid in expression context
|
2022-11-15 07:24:33 -06:00
|
|
|
help: you might be missing a semicolon here
|
|
|
|
|
|
|
|
|
LL | let _ = #[duplicate]; "Hello, world!";
|
|
|
|
| +
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
|
|
error: macro expansion ignores token `,` and any following
|
2020-01-31 16:02:31 -06:00
|
|
|
--> $DIR/attr-invalid-exprs.rs:24:9
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
|
|
|
LL | #[duplicate]
|
2022-11-15 07:24:33 -06:00
|
|
|
| ^^^^^^^^^^^^ caused by the macro expansion here
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
|
|
|
= note: the usage of `duplicate!` is likely invalid in expression context
|
2022-11-15 07:24:33 -06:00
|
|
|
help: you might be missing a semicolon here
|
|
|
|
|
|
|
|
|
LL | #[duplicate];
|
|
|
|
| +
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|