2019-08-13 18:52:16 -05:00
|
|
|
error[E0609]: no field `await` on type `await_on_struct_missing::S`
|
|
|
|
--> $DIR/suggest-switching-edition-on-await.rs:9:7
|
|
|
|
|
|
|
|
|
LL | x.await;
|
2023-10-23 21:06:06 -05:00
|
|
|
| ^^^^^
|
2019-08-13 18:52:16 -05:00
|
|
|
|
|
2020-12-30 07:33:46 -06:00
|
|
|
= note: to `.await` a `Future`, switch to Rust 2018 or later
|
2022-03-07 11:50:47 -06:00
|
|
|
= help: pass `--edition 2021` to `rustc`
|
2019-08-13 18:52:16 -05:00
|
|
|
= note: for more on editions, read https://doc.rust-lang.org/edition-guide
|
|
|
|
|
|
|
|
error[E0609]: no field `await` on type `await_on_struct_similar::S`
|
2023-10-23 21:06:06 -05:00
|
|
|
--> $DIR/suggest-switching-edition-on-await.rs:21:7
|
2019-08-13 18:52:16 -05:00
|
|
|
|
|
|
|
|
LL | x.await;
|
2023-10-24 18:31:47 -05:00
|
|
|
| ^^^^^
|
2019-08-13 18:52:16 -05:00
|
|
|
|
|
2020-12-30 07:33:46 -06:00
|
|
|
= note: to `.await` a `Future`, switch to Rust 2018 or later
|
2022-03-07 11:50:47 -06:00
|
|
|
= help: pass `--edition 2021` to `rustc`
|
2019-08-13 18:52:16 -05:00
|
|
|
= note: for more on editions, read https://doc.rust-lang.org/edition-guide
|
2023-10-24 18:31:47 -05:00
|
|
|
help: a field with a similar name exists
|
|
|
|
|
|
|
|
|
LL | x.awai;
|
|
|
|
| ~~~~
|
2019-08-13 18:52:16 -05:00
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
error[E0609]: no field `await` on type `Pin<&mut dyn Future<Output = ()>>`
|
2023-10-23 21:06:06 -05:00
|
|
|
--> $DIR/suggest-switching-edition-on-await.rs:30:7
|
2019-08-13 18:52:16 -05:00
|
|
|
|
|
|
|
|
LL | x.await;
|
2023-10-23 21:06:06 -05:00
|
|
|
| ^^^^^
|
2019-08-13 18:52:16 -05:00
|
|
|
|
|
2020-12-30 07:33:46 -06:00
|
|
|
= note: to `.await` a `Future`, switch to Rust 2018 or later
|
2022-03-07 11:50:47 -06:00
|
|
|
= help: pass `--edition 2021` to `rustc`
|
2019-08-13 18:52:16 -05:00
|
|
|
= note: for more on editions, read https://doc.rust-lang.org/edition-guide
|
|
|
|
|
|
|
|
error[E0609]: no field `await` on type `impl Future<Output = ()>`
|
2023-10-23 21:06:06 -05:00
|
|
|
--> $DIR/suggest-switching-edition-on-await.rs:38:7
|
2019-08-13 18:52:16 -05:00
|
|
|
|
|
|
|
|
LL | x.await;
|
|
|
|
| ^^^^^
|
|
|
|
|
|
2020-12-30 07:33:46 -06:00
|
|
|
= note: to `.await` a `Future`, switch to Rust 2018 or later
|
2022-03-07 11:50:47 -06:00
|
|
|
= help: pass `--edition 2021` to `rustc`
|
2019-08-13 18:52:16 -05:00
|
|
|
= note: for more on editions, read https://doc.rust-lang.org/edition-guide
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0609`.
|