]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/suggest-switching-edition-on-await-cargo.stderr
Rollup merge of #94839 - TaKO8Ki:suggest-using-double-colon-for-struct-field-type...
[rust.git] / src / test / ui / async-await / suggest-switching-edition-on-await-cargo.stderr
1 error[E0609]: no field `await` on type `await_on_struct_missing::S`
2   --> $DIR/suggest-switching-edition-on-await-cargo.rs:11:7
3    |
4 LL |     x.await;
5    |       ^^^^^ unknown field
6    |
7    = note: to `.await` a `Future`, switch to Rust 2018 or later
8    = help: set `edition = "2021"` in `Cargo.toml`
9    = note: for more on editions, read https://doc.rust-lang.org/edition-guide
10
11 error[E0609]: no field `await` on type `await_on_struct_similar::S`
12   --> $DIR/suggest-switching-edition-on-await-cargo.rs:24:7
13    |
14 LL |     x.await;
15    |       ^^^^^ help: a field with a similar name exists: `awai`
16    |
17    = note: to `.await` a `Future`, switch to Rust 2018 or later
18    = help: set `edition = "2021"` in `Cargo.toml`
19    = note: for more on editions, read https://doc.rust-lang.org/edition-guide
20
21 error[E0609]: no field `await` on type `Pin<&mut dyn Future<Output = ()>>`
22   --> $DIR/suggest-switching-edition-on-await-cargo.rs:33:7
23    |
24 LL |     x.await;
25    |       ^^^^^ unknown field
26    |
27    = note: to `.await` a `Future`, switch to Rust 2018 or later
28    = help: set `edition = "2021"` in `Cargo.toml`
29    = note: for more on editions, read https://doc.rust-lang.org/edition-guide
30
31 error[E0609]: no field `await` on type `impl Future<Output = ()>`
32   --> $DIR/suggest-switching-edition-on-await-cargo.rs:42:7
33    |
34 LL |     x.await;
35    |       ^^^^^
36    |
37    = note: to `.await` a `Future`, switch to Rust 2018 or later
38    = help: set `edition = "2021"` in `Cargo.toml`
39    = note: for more on editions, read https://doc.rust-lang.org/edition-guide
40
41 error: aborting due to 4 previous errors
42
43 For more information about this error, try `rustc --explain E0609`.