fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
955 B28 linesraw
1error: expected expression, found end of macro arguments
2  --> $DIR/attr-invalid-exprs.rs:11:13
3   |
4LL |     let _ = #[no_output] "Hello, world!";
5   |             ^^^^^^^^^^^^
6
7error: macro expansion ignores token `,` and any following
8  --> $DIR/attr-invalid-exprs.rs:14:13
9   |
10LL |     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
17error: macro expansion ignores token `,` and any following
18  --> $DIR/attr-invalid-exprs.rs:23:9
19   |
20LL |         #[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
27error: aborting due to 3 previous errors
28