]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/async-await/await-keyword/2018-edition-error-in-non-macro-position.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / async-await / await-keyword / 2018-edition-error-in-non-macro-position.stderr
index 05d543a7e486d44ff8ee2869e52255ef3dc5b05d..56020d1b2f599b5b90dff37936c05ad234094deb 100644 (file)
@@ -7,7 +7,7 @@ LL |     pub mod await {
 help: you can escape reserved keywords to use them as identifiers
    |
 LL |     pub mod r#await {
-   |             ^^^^^^^
+   |             ~~~~~~~
 
 error: expected identifier, found keyword `await`
   --> $DIR/2018-edition-error-in-non-macro-position.rs:7:20
@@ -18,7 +18,7 @@ LL |         pub struct await;
 help: you can escape reserved keywords to use them as identifiers
    |
 LL |         pub struct r#await;
-   |                    ^^^^^^^
+   |                    ~~~~~~~
 
 error: expected identifier, found keyword `await`
   --> $DIR/2018-edition-error-in-non-macro-position.rs:10:22
@@ -29,7 +29,7 @@ LL | use self::outer_mod::await::await;
 help: you can escape reserved keywords to use them as identifiers
    |
 LL | use self::outer_mod::r#await::await;
-   |                      ^^^^^^^
+   |                      ~~~~~~~
 
 error: expected identifier, found keyword `await`
   --> $DIR/2018-edition-error-in-non-macro-position.rs:10:29
@@ -40,7 +40,7 @@ LL | use self::outer_mod::await::await;
 help: you can escape reserved keywords to use them as identifiers
    |
 LL | use self::outer_mod::await::r#await;
-   |                             ^^^^^^^
+   |                             ~~~~~~~
 
 error: expected identifier, found keyword `await`
   --> $DIR/2018-edition-error-in-non-macro-position.rs:13:14
@@ -51,7 +51,7 @@ LL | struct Foo { await: () }
 help: you can escape reserved keywords to use them as identifiers
    |
 LL | struct Foo { r#await: () }
-   |              ^^^^^^^
+   |              ~~~~~~~
 
 error: expected identifier, found keyword `await`
   --> $DIR/2018-edition-error-in-non-macro-position.rs:16:15
@@ -62,7 +62,7 @@ LL | impl Foo { fn await() {} }
 help: you can escape reserved keywords to use them as identifiers
    |
 LL | impl Foo { fn r#await() {} }
-   |               ^^^^^^^
+   |               ~~~~~~~
 
 error: expected identifier, found keyword `await`
   --> $DIR/2018-edition-error-in-non-macro-position.rs:19:14
@@ -73,7 +73,7 @@ LL | macro_rules! await {
 help: you can escape reserved keywords to use them as identifiers
    |
 LL | macro_rules! r#await {
-   |              ^^^^^^^
+   |              ~~~~~~~
 
 error: aborting due to 7 previous errors