1 error[E0609]: no field `await` on type `await_on_struct_missing::S`
2 --> $DIR/suggest-switching-edition-on-await.rs:9:7
7 = note: to `.await` a `Future`, switch to Rust 2018 or later
8 = help: pass `--edition 2021` to `rustc`
9 = note: for more on editions, read https://doc.rust-lang.org/edition-guide
11 error[E0609]: no field `await` on type `await_on_struct_similar::S`
12 --> $DIR/suggest-switching-edition-on-await.rs:22:7
15 | ^^^^^ help: a field with a similar name exists: `awai`
17 = note: to `.await` a `Future`, switch to Rust 2018 or later
18 = help: pass `--edition 2021` to `rustc`
19 = note: for more on editions, read https://doc.rust-lang.org/edition-guide
21 error[E0609]: no field `await` on type `Pin<&mut dyn Future<Output = ()>>`
22 --> $DIR/suggest-switching-edition-on-await.rs:31:7
27 = note: to `.await` a `Future`, switch to Rust 2018 or later
28 = help: pass `--edition 2021` to `rustc`
29 = note: for more on editions, read https://doc.rust-lang.org/edition-guide
31 error[E0609]: no field `await` on type `impl Future<Output = ()>`
32 --> $DIR/suggest-switching-edition-on-await.rs:40:7
37 = note: to `.await` a `Future`, switch to Rust 2018 or later
38 = help: pass `--edition 2021` to `rustc`
39 = note: for more on editions, read https://doc.rust-lang.org/edition-guide
41 error: aborting due to 4 previous errors
43 For more information about this error, try `rustc --explain E0609`.