@@ -3,36 +3,33 @@ error: macro expansion ignores token `;` and any following
3
3
|
4
4
LL | () => ( i ; typeof ); //~ ERROR expected expression, found reserved keyword `typeof`
5
5
| ^
6
- |
7
- note: caused by the macro expansion here; the usage of `m!` is likely invalid in type context
8
- --> $DIR/macro-context.rs:20:12
9
- |
6
+ ...
10
7
LL | let a: m!();
11
- | ^^^^
8
+ | ---- caused by the macro expansion here
9
+ |
10
+ = note: the usage of `m!` is likely invalid in type context
12
11
13
12
error: macro expansion ignores token `typeof` and any following
14
13
--> $DIR/macro-context.rs:13:17
15
14
|
16
15
LL | () => ( i ; typeof ); //~ ERROR expected expression, found reserved keyword `typeof`
17
16
| ^^^^^^
18
- |
19
- note: caused by the macro expansion here; the usage of `m!` is likely invalid in expression context
20
- --> $DIR/macro-context.rs:21:13
21
- |
17
+ ...
22
18
LL | let i = m!();
23
- | ^^^^
19
+ | ---- caused by the macro expansion here
20
+ |
21
+ = note: the usage of `m!` is likely invalid in expression context
24
22
25
23
error: macro expansion ignores token `;` and any following
26
24
--> $DIR/macro-context.rs:13:15
27
25
|
28
26
LL | () => ( i ; typeof ); //~ ERROR expected expression, found reserved keyword `typeof`
29
27
| ^
30
- |
31
- note: caused by the macro expansion here; the usage of `m!` is likely invalid in pattern context
32
- --> $DIR/macro-context.rs:23:9
33
- |
28
+ ...
34
29
LL | m!() => {}
35
- | ^^^^
30
+ | ---- caused by the macro expansion here
31
+ |
32
+ = note: the usage of `m!` is likely invalid in pattern context
36
33
37
34
error: expected expression, found reserved keyword `typeof`
38
35
--> $DIR/macro-context.rs:13:17
0 commit comments