rust/src/test/ui/editions/edition-keywords-2018-2015-parsing.stderr

48 lines
1.5 KiB
Plaintext
Raw Normal View History

error: expected identifier, found keyword `async`
2018-12-25 09:56:47 -06:00
--> $DIR/edition-keywords-2018-2015-parsing.rs:8:13
2018-04-23 17:50:28 -05:00
|
2019-03-09 06:03:44 -06:00
LL | let mut async = 1;
| ^^^^^ expected identifier, found keyword
|
help: you can escape reserved keywords to use them as identifiers
|
2019-03-09 06:03:44 -06:00
LL | let mut r#async = 1;
| ^^^^^^^
2018-04-23 17:50:28 -05:00
error: expected identifier, found keyword `async`
2018-12-25 09:56:47 -06:00
--> $DIR/edition-keywords-2018-2015-parsing.rs:18:13
2018-04-23 17:50:28 -05:00
|
2019-03-09 06:03:44 -06:00
LL | module::async();
| ^^^^^ expected identifier, found keyword
|
help: you can escape reserved keywords to use them as identifiers
|
2019-03-09 06:03:44 -06:00
LL | module::r#async();
| ^^^^^^^
2018-04-23 17:50:28 -05:00
error: no rules expected the token `r#async`
2018-12-25 09:56:47 -06:00
--> $DIR/edition-keywords-2018-2015-parsing.rs:12:31
2018-04-23 17:50:28 -05:00
|
2019-03-09 06:03:44 -06:00
LL | r#async = consumes_async!(r#async);
| ^^^^^^^ no rules expected this token in macro call
2018-04-23 17:50:28 -05:00
error: no rules expected the token `async`
2018-12-25 09:56:47 -06:00
--> $DIR/edition-keywords-2018-2015-parsing.rs:13:35
2018-04-23 17:50:28 -05:00
|
2019-03-09 06:03:44 -06:00
LL | r#async = consumes_async_raw!(async);
| ^^^^^ no rules expected this token in macro call
2018-04-23 17:50:28 -05:00
2018-11-23 17:37:27 -06:00
error: macro expansion ends with an incomplete expression: expected one of `move`, `|`, or `||`
--> <::edition_kw_macro_2015::passes_ident macros>:1:22
2018-04-23 17:50:28 -05:00
|
LL | ($ i : ident) => ($ i)
| ^ expected one of `move`, `|`, or `||`
|
2018-12-25 09:56:47 -06:00
::: $DIR/edition-keywords-2018-2015-parsing.rs:16:8
|
LL | if passes_ident!(async) == 1 {}
| -------------------- in this macro invocation
2018-04-23 17:50:28 -05:00
2018-05-13 08:35:52 -05:00
error: aborting due to 5 previous errors
2018-04-23 17:50:28 -05:00