2019-09-28 11:15:06 -05:00
|
|
|
error: expected identifier, found keyword `await`
|
2018-09-20 19:36:31 -05:00
|
|
|
--> $DIR/2018-edition-error.rs:5:13
|
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | pub mod await {
|
2019-09-28 11:15:06 -05:00
|
|
|
| ^^^^^ expected identifier, found keyword
|
2019-04-18 14:55:23 -05:00
|
|
|
help: you can escape reserved keywords to use them as identifiers
|
|
|
|
|
|
|
|
|
LL | pub mod r#await {
|
|
|
|
| ^^^^^^^
|
2018-09-20 19:36:31 -05:00
|
|
|
|
2019-09-28 11:15:06 -05:00
|
|
|
error: expected identifier, found keyword `await`
|
2018-09-20 19:36:31 -05:00
|
|
|
--> $DIR/2018-edition-error.rs:6:20
|
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | pub struct await;
|
2019-09-28 11:15:06 -05:00
|
|
|
| ^^^^^ expected identifier, found keyword
|
2019-04-18 14:55:23 -05:00
|
|
|
help: you can escape reserved keywords to use them as identifiers
|
|
|
|
|
|
|
|
|
LL | pub struct r#await;
|
|
|
|
| ^^^^^^^
|
2018-09-20 19:36:31 -05:00
|
|
|
|
2019-09-28 11:15:06 -05:00
|
|
|
error: expected identifier, found keyword `await`
|
2018-09-20 19:36:31 -05:00
|
|
|
--> $DIR/2018-edition-error.rs:9:22
|
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | use self::outer_mod::await::await;
|
2019-09-28 11:15:06 -05:00
|
|
|
| ^^^^^ expected identifier, found keyword
|
2019-04-18 14:55:23 -05:00
|
|
|
help: you can escape reserved keywords to use them as identifiers
|
|
|
|
|
|
|
|
|
LL | use self::outer_mod::r#await::await;
|
|
|
|
| ^^^^^^^
|
2018-09-20 19:36:31 -05:00
|
|
|
|
2019-09-28 11:15:06 -05:00
|
|
|
error: expected identifier, found keyword `await`
|
2018-09-20 19:36:31 -05:00
|
|
|
--> $DIR/2018-edition-error.rs:9:29
|
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | use self::outer_mod::await::await;
|
2019-09-28 11:15:06 -05:00
|
|
|
| ^^^^^ expected identifier, found keyword
|
2019-04-18 14:55:23 -05:00
|
|
|
help: you can escape reserved keywords to use them as identifiers
|
2018-09-20 19:36:31 -05:00
|
|
|
|
|
2019-04-18 14:55:23 -05:00
|
|
|
LL | use self::outer_mod::await::r#await;
|
|
|
|
| ^^^^^^^
|
2018-09-20 19:36:31 -05:00
|
|
|
|
2019-09-28 11:15:06 -05:00
|
|
|
error: expected identifier, found keyword `await`
|
2019-07-01 23:46:35 -05:00
|
|
|
--> $DIR/2018-edition-error.rs:12:14
|
|
|
|
|
|
|
|
|
LL | macro_rules! await { () => {}; }
|
2019-09-28 11:15:06 -05:00
|
|
|
| ^^^^^ expected identifier, found keyword
|
2019-07-01 23:46:35 -05:00
|
|
|
help: you can escape reserved keywords to use them as identifiers
|
|
|
|
|
|
|
|
|
LL | macro_rules! r#await { () => {}; }
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: expected expression, found `)`
|
|
|
|
--> $DIR/2018-edition-error.rs:15:12
|
|
|
|
|
|
|
|
|
LL | await!();
|
|
|
|
| ^ expected expression
|
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
2018-09-20 19:36:31 -05:00
|
|
|
|