]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/macro-context.stderr
Auto merge of #68820 - WaffleLapkin:remove_finished_from_map_while, r=LukasKalbertodt
[rust.git] / src / test / ui / macros / macro-context.stderr
1 error: macro expansion ignores token `;` and any following
2   --> $DIR/macro-context.rs:3:15
3    |
4 LL |     () => ( i ; typeof );
5    |               ^
6 ...
7 LL |     let a: m!();
8    |            ---- caused by the macro expansion here
9    |
10    = note: the usage of `m!` is likely invalid in type context
11
12 error: macro expansion ignores token `typeof` and any following
13   --> $DIR/macro-context.rs:3:17
14    |
15 LL |     () => ( i ; typeof );
16    |                 ^^^^^^
17 ...
18 LL |     let i = m!();
19    |             ---- caused by the macro expansion here
20    |
21    = note: the usage of `m!` is likely invalid in expression context
22
23 error: macro expansion ignores token `;` and any following
24   --> $DIR/macro-context.rs:3:15
25    |
26 LL |     () => ( i ; typeof );
27    |               ^
28 ...
29 LL |         m!() => {}
30    |         ---- caused by the macro expansion here
31    |
32    = note: the usage of `m!` is likely invalid in pattern context
33
34 error: expected expression, found reserved keyword `typeof`
35   --> $DIR/macro-context.rs:3:17
36    |
37 LL |     () => ( i ; typeof );
38    |                 ^^^^^^ expected expression
39 ...
40 LL |     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
45 error: aborting due to 4 previous errors
46