2019-09-28 16:15:06 +00:00
|
|
|
error: expected identifier, found keyword `await`
|
2019-08-02 01:48:43 +00:00
|
|
|
--> $DIR/2018-edition-error-in-non-macro-position.rs:6:13
|
2019-04-18 19:55:23 +00:00
|
|
|
|
|
|
|
|
LL | pub mod await {
|
2019-09-28 16:15:06 +00:00
|
|
|
| ^^^^^ expected identifier, found keyword
|
2019-10-24 05:20:58 +00:00
|
|
|
|
|
2022-01-27 22:53:39 +00:00
|
|
|
help: escape `await` to use it as an identifier
|
2019-04-18 19:55:23 +00:00
|
|
|
|
|
|
|
|
LL | pub mod r#await {
|
2022-01-27 22:53:39 +00:00
|
|
|
| ++
|
2019-04-18 19:55:23 +00:00
|
|
|
|
2019-09-28 16:15:06 +00:00
|
|
|
error: expected identifier, found keyword `await`
|
2019-08-02 01:48:43 +00:00
|
|
|
--> $DIR/2018-edition-error-in-non-macro-position.rs:7:20
|
2019-04-18 19:55:23 +00:00
|
|
|
|
|
|
|
|
LL | pub struct await;
|
2019-09-28 16:15:06 +00:00
|
|
|
| ^^^^^ expected identifier, found keyword
|
2019-10-24 05:20:58 +00:00
|
|
|
|
|
2022-01-27 22:53:39 +00:00
|
|
|
help: escape `await` to use it as an identifier
|
2019-04-18 19:55:23 +00:00
|
|
|
|
|
|
|
|
LL | pub struct r#await;
|
2022-01-27 22:53:39 +00:00
|
|
|
| ++
|
2019-04-18 19:55:23 +00:00
|
|
|
|
2019-09-28 16:15:06 +00:00
|
|
|
error: expected identifier, found keyword `await`
|
2019-08-02 01:48:43 +00:00
|
|
|
--> $DIR/2018-edition-error-in-non-macro-position.rs:10:22
|
2019-04-18 19:55:23 +00:00
|
|
|
|
|
|
|
|
LL | use self::outer_mod::await::await;
|
2019-09-28 16:15:06 +00:00
|
|
|
| ^^^^^ expected identifier, found keyword
|
2019-10-24 05:20:58 +00:00
|
|
|
|
|
2022-01-27 22:53:39 +00:00
|
|
|
help: escape `await` to use it as an identifier
|
2019-04-18 19:55:23 +00:00
|
|
|
|
|
|
|
|
LL | use self::outer_mod::r#await::await;
|
2022-01-27 22:53:39 +00:00
|
|
|
| ++
|
2019-04-18 19:55:23 +00:00
|
|
|
|
2019-09-28 16:15:06 +00:00
|
|
|
error: expected identifier, found keyword `await`
|
2019-08-02 01:48:43 +00:00
|
|
|
--> $DIR/2018-edition-error-in-non-macro-position.rs:10:29
|
2019-04-18 19:55:23 +00:00
|
|
|
|
|
|
|
|
LL | use self::outer_mod::await::await;
|
2019-09-28 16:15:06 +00:00
|
|
|
| ^^^^^ expected identifier, found keyword
|
2019-10-24 05:20:58 +00:00
|
|
|
|
|
2022-01-27 22:53:39 +00:00
|
|
|
help: escape `await` to use it as an identifier
|
2019-04-18 19:55:23 +00:00
|
|
|
|
|
|
|
|
LL | use self::outer_mod::await::r#await;
|
2022-01-27 22:53:39 +00:00
|
|
|
| ++
|
2019-04-18 19:55:23 +00:00
|
|
|
|
2019-09-28 16:15:06 +00:00
|
|
|
error: expected identifier, found keyword `await`
|
2019-08-02 01:48:43 +00:00
|
|
|
--> $DIR/2018-edition-error-in-non-macro-position.rs:13:14
|
2019-04-18 19:55:23 +00:00
|
|
|
|
|
|
|
|
LL | struct Foo { await: () }
|
2022-09-26 14:13:38 +00:00
|
|
|
| --- ^^^^^ expected identifier, found keyword
|
|
|
|
| |
|
|
|
|
| while parsing this struct
|
2019-10-24 05:20:58 +00:00
|
|
|
|
|
2022-01-27 22:53:39 +00:00
|
|
|
help: escape `await` to use it as an identifier
|
2019-04-18 19:55:23 +00:00
|
|
|
|
|
|
|
|
LL | struct Foo { r#await: () }
|
2022-01-27 22:53:39 +00:00
|
|
|
| ++
|
2019-04-18 19:55:23 +00:00
|
|
|
|
2019-09-28 16:15:06 +00:00
|
|
|
error: expected identifier, found keyword `await`
|
2019-08-02 01:48:43 +00:00
|
|
|
--> $DIR/2018-edition-error-in-non-macro-position.rs:16:15
|
2019-04-18 19:55:23 +00:00
|
|
|
|
|
|
|
|
LL | impl Foo { fn await() {} }
|
2019-09-28 16:15:06 +00:00
|
|
|
| ^^^^^ expected identifier, found keyword
|
2019-10-24 05:20:58 +00:00
|
|
|
|
|
2022-01-27 22:53:39 +00:00
|
|
|
help: escape `await` to use it as an identifier
|
2019-04-18 19:55:23 +00:00
|
|
|
|
|
|
|
|
LL | impl Foo { fn r#await() {} }
|
2022-01-27 22:53:39 +00:00
|
|
|
| ++
|
2019-04-18 19:55:23 +00:00
|
|
|
|
2019-09-28 16:15:06 +00:00
|
|
|
error: expected identifier, found keyword `await`
|
2019-08-02 01:48:43 +00:00
|
|
|
--> $DIR/2018-edition-error-in-non-macro-position.rs:19:14
|
2019-04-18 19:55:23 +00:00
|
|
|
|
|
|
|
|
LL | macro_rules! await {
|
2019-09-28 16:15:06 +00:00
|
|
|
| ^^^^^ expected identifier, found keyword
|
2019-10-24 05:20:58 +00:00
|
|
|
|
|
2022-01-27 22:53:39 +00:00
|
|
|
help: escape `await` to use it as an identifier
|
2019-04-18 19:55:23 +00:00
|
|
|
|
|
|
|
|
LL | macro_rules! r#await {
|
2022-01-27 22:53:39 +00:00
|
|
|
| ++
|
2019-04-18 19:55:23 +00:00
|
|
|
|
2019-05-16 02:47:18 +00:00
|
|
|
error: aborting due to 7 previous errors
|
2019-04-18 19:55:23 +00:00
|
|
|
|