rust/src/test/ui/await-keyword/2018-edition-error.stderr

40 lines
1.6 KiB
Plaintext
Raw Normal View History

error[E0721]: `await` is a keyword in the 2018 edition
--> $DIR/2018-edition-error.rs:5:13
|
2018-11-27 03:56:36 -06:00
LL | pub mod await { //~ ERROR `await` is a keyword
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
error[E0721]: `await` is a keyword in the 2018 edition
--> $DIR/2018-edition-error.rs:6:20
|
2018-11-27 03:56:36 -06:00
LL | pub struct await; //~ ERROR `await` is a keyword
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
error[E0721]: `await` is a keyword in the 2018 edition
--> $DIR/2018-edition-error.rs:9:22
|
2018-11-27 03:56:36 -06:00
LL | use self::outer_mod::await::await; //~ ERROR `await` is a keyword
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
error[E0721]: `await` is a keyword in the 2018 edition
--> $DIR/2018-edition-error.rs:9:29
|
2018-11-27 03:56:36 -06:00
LL | use self::outer_mod::await::await; //~ ERROR `await` is a keyword
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
error[E0721]: `await` is a keyword in the 2018 edition
2018-11-27 03:56:36 -06:00
--> $DIR/2018-edition-error.rs:13:11
|
2018-11-27 03:56:36 -06:00
LL | match await { await => () } //~ ERROR `await` is a keyword
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
error[E0721]: `await` is a keyword in the 2018 edition
2018-11-27 03:56:36 -06:00
--> $DIR/2018-edition-error.rs:13:19
|
2018-11-27 03:56:36 -06:00
LL | match await { await => () } //~ ERROR `await` is a keyword
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
error: aborting due to 6 previous errors
For more information about this error, try `rustc --explain E0721`.