1
1
error: expected identifier, found keyword `async`
2
- --> $DIR/edition-keywords-2018-2015-parsing.rs:14 :13
2
+ --> $DIR/edition-keywords-2018-2015-parsing.rs:16 :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-2015-parsing.rs:24 :13
13
+ --> $DIR/edition-keywords-2018-2015-parsing.rs:26 :13
14
14
|
15
15
LL | module::async();
16
16
| ^^^^^ expected identifier, found keyword
@@ -21,13 +21,13 @@ LL | module::r#async();
21
21
| ^^^^^^^
22
22
23
23
error: no rules expected the token `r#async`
24
- --> $DIR/edition-keywords-2018-2015-parsing.rs:18 :31
24
+ --> $DIR/edition-keywords-2018-2015-parsing.rs:20 :31
25
25
|
26
26
LL | r#async = consumes_async!(r#async);
27
27
| ^^^^^^^ no rules expected this token in macro call
28
28
29
29
error: no rules expected the token `async`
30
- --> $DIR/edition-keywords-2018-2015-parsing.rs:19 :35
30
+ --> $DIR/edition-keywords-2018-2015-parsing.rs:21 :35
31
31
|
32
32
LL | r#async = consumes_async_raw!(async);
33
33
| ^^^^^ no rules expected this token in macro call
@@ -38,20 +38,19 @@ error: macro expansion ends with an incomplete expression: expected one of `move
38
38
LL | ($i: ident) => ($i)
39
39
| ^ expected one of `move`, `|`, or `||`
40
40
|
41
- ::: $DIR/edition-keywords-2018-2015-parsing.rs:22 :8
41
+ ::: $DIR/edition-keywords-2018-2015-parsing.rs:24 :8
42
42
|
43
43
LL | if passes_ident!(async) == 1 {}
44
44
| -------------------- in this macro invocation
45
45
46
- error[E0658 ]: async closures are unstable
47
- --> $DIR/edition-keywords-2018-2015-parsing.rs:22:22
46
+ error[E0308 ]: mismatched types
47
+ --> $DIR/edition-keywords-2018-2015-parsing.rs:29:33
48
48
|
49
- LL | if passes_ident!(async) == 1 {}
50
- | ^^^^^
51
- |
52
- = note: see issue #62290 <https://github.com/rust-lang/rust/issues/62290> for more information
53
- = help: add `#![feature(async_closure)]` to the crate attributes to enable
49
+ LL | let _recovery_witness: () = 0;
50
+ | -- ^ expected `()`, found integer
51
+ | |
52
+ | expected due to this
54
53
55
54
error: aborting due to 6 previous errors
56
55
57
- For more information about this error, try `rustc --explain E0658 `.
56
+ For more information about this error, try `rustc --explain E0308 `.
0 commit comments