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