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
1.2 KiB44 linesraw
1error: macro expansion ignores token `;` and any following
2  --> $DIR/macro-context.rs:3:15
3   |
4LL |     () => ( i ; typeof );
5   |               ^
6...
7LL |     let a: m!();
8   |            ---- caused by the macro expansion here
9   |
10   = note: the usage of `m!` is likely invalid in type context
11
12error: macro expansion ignores token `typeof` and any following
13  --> $DIR/macro-context.rs:3:17
14   |
15LL |     () => ( i ; typeof );
16   |                 ^^^^^^
17...
18LL |     let i = m!();
19   |             ---- caused by the macro expansion here
20   |
21   = note: the usage of `m!` is likely invalid in expression context
22
23error: macro expansion ignores token `;` and any following
24  --> $DIR/macro-context.rs:3:15
25   |
26LL |     () => ( i ; typeof );
27   |               ^
28...
29LL |         m!() => {}
30   |         ---- caused by the macro expansion here
31   |
32   = note: the usage of `m!` is likely invalid in pattern context
33
34error: expected expression, found reserved keyword `typeof`
35  --> $DIR/macro-context.rs:3:17
36   |
37LL |     () => ( i ; typeof );
38   |                 ^^^^^^ expected expression
39...
40LL |     m!();
41   |     ----- in this macro invocation
42
43error: aborting due to 4 previous errors
44