11error: 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
33 |
44LL | let mut async = 1;
55 | ^^^^^ expected identifier, found keyword
@@ -10,7 +10,7 @@ LL | let mut r#async = 1;
1010 | ^^^^^^^
1111
1212error: 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
1414 |
1515LL | module::async();
1616 | ^^^^^ expected identifier, found keyword
@@ -21,13 +21,13 @@ LL | module::r#async();
2121 | ^^^^^^^
2222
2323error: 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
2525 |
2626LL | r#async = consumes_async!(r#async);
2727 | ^^^^^^^ no rules expected this token in macro call
2828
2929error: 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
3131 |
3232LL | r#async = consumes_async_raw!(async);
3333 | ^^^^^ no rules expected this token in macro call
@@ -38,20 +38,19 @@ error: macro expansion ends with an incomplete expression: expected one of `move
3838LL | ($i: ident) => ($i)
3939 | ^ expected one of `move`, `|`, or `||`
4040 |
41- ::: $DIR/edition-keywords-2018-2015-parsing.rs:22 :8
41+ ::: $DIR/edition-keywords-2018-2015-parsing.rs:24 :8
4242 |
4343LL | if passes_ident!(async) == 1 {}
4444 | -------------------- in this macro invocation
4545
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
4848 |
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
5453
5554error: aborting due to 6 previous errors
5655
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