fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
2.1 KiB70 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   |
43   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
44
45error[E0412]: cannot find type `i` in this scope
46  --> $DIR/macro-context.rs:3:13
47   |
48LL |     () => ( i ; typeof );
49   |             ^ help: a builtin type with a similar name exists: `i8`
50...
51LL |     let a: m!();
52   |            ---- in this macro invocation
53   |
54   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
55
56error[E0425]: cannot find value `i` in this scope
57  --> $DIR/macro-context.rs:3:13
58   |
59LL |     () => ( i ; typeof );
60   |             ^ help: a local variable with a similar name exists: `a`
61...
62LL |     let i = m!();
63   |             ---- in this macro invocation
64   |
65   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
66
67error: aborting due to 6 previous errors
68
69Some errors have detailed explanations: E0412, E0425.
70For more information about an error, try `rustc --explain E0412`.