1
1
error: expected identifier, found keyword `async`
2
- --> $DIR/edition-keywords-2018-2018-parsing.rs:16 :13
2
+ --> $DIR/edition-keywords-2018-2018-parsing.rs:23 :13
3
3
|
4
4
LL | let mut async = 1;
5
5
| ^^^^^ expected identifier, found keyword
@@ -10,7 +10,7 @@ LL | let mut r#async = 1;
10
10
| ++
11
11
12
12
error: expected identifier, found keyword `async`
13
- --> $DIR/edition-keywords-2018-2018-parsing.rs:26 :13
13
+ --> $DIR/edition-keywords-2018-2018-parsing.rs:39 :13
14
14
|
15
15
LL | module::async();
16
16
| ^^^^^ expected identifier, found keyword
@@ -21,7 +21,7 @@ LL | module::r#async();
21
21
| ++
22
22
23
23
error: no rules expected the token `r#async`
24
- --> $DIR/edition-keywords-2018-2018-parsing.rs:20 :31
24
+ --> $DIR/edition-keywords-2018-2018-parsing.rs:27 :31
25
25
|
26
26
LL | r#async = consumes_async!(r#async);
27
27
| ^^^^^^^ no rules expected this token in macro call
@@ -33,7 +33,7 @@ LL | (async) => (1)
33
33
| ^^^^^
34
34
35
35
error: no rules expected the token `async`
36
- --> $DIR/edition-keywords-2018-2018-parsing.rs:21 :35
36
+ --> $DIR/edition-keywords-2018-2018-parsing.rs:28 :35
37
37
|
38
38
LL | r#async = consumes_async_raw!(async);
39
39
| ^^^^^ no rules expected this token in macro call
@@ -50,19 +50,37 @@ error: macro expansion ends with an incomplete expression: expected one of `move
50
50
LL | ($i: ident) => ($i)
51
51
| ^ expected one of `move`, `|`, or `||`
52
52
|
53
- ::: $DIR/edition-keywords-2018-2018-parsing.rs:24 :8
53
+ ::: $DIR/edition-keywords-2018-2018-parsing.rs:31 :8
54
54
|
55
- LL | if passes_ident!(async) == 1 {}
55
+ LL | if passes_ident!(async) == 1 {} // FIXME: Edition hygiene bug, async here is 2018 and reserved
56
56
| -------------------- in this macro invocation
57
57
58
+ error: macro expansion ends with an incomplete expression: expected one of `move`, `|`, or `||`
59
+ --> $DIR/edition-keywords-2018-2018-parsing.rs:33:24
60
+ |
61
+ LL | if passes_tt!(async) == 1 {}
62
+ | ^ expected one of `move`, `|`, or `||`
63
+
64
+ error: macro expansion ends with an incomplete expression: expected one of `move`, `|`, or `||`
65
+ --> $DIR/edition-keywords-2018-2018-parsing.rs:16:23
66
+ |
67
+ LL | ($i: ident) => ($i)
68
+ | ^ expected one of `move`, `|`, or `||`
69
+
70
+ error: macro expansion ends with an incomplete expression: expected one of `move`, `|`, or `||`
71
+ --> $DIR/edition-keywords-2018-2018-parsing.rs:19:20
72
+ |
73
+ LL | ($i: tt) => ($i)
74
+ | ^ expected one of `move`, `|`, or `||`
75
+
58
76
error[E0308]: mismatched types
59
- --> $DIR/edition-keywords-2018-2018-parsing.rs:29 :33
77
+ --> $DIR/edition-keywords-2018-2018-parsing.rs:42 :33
60
78
|
61
79
LL | let _recovery_witness: () = 0;
62
80
| -- ^ expected `()`, found integer
63
81
| |
64
82
| expected due to this
65
83
66
- error: aborting due to 6 previous errors
84
+ error: aborting due to 9 previous errors
67
85
68
86
For more information about this error, try `rustc --explain E0308`.
0 commit comments