]> git.proxmox.com Git - rustc.git/blame - src/test/ui/async-await/suggest-switching-edition-on-await.stderr
New upstream version 1.61.0+dfsg1
[rustc.git] / src / test / ui / async-await / suggest-switching-edition-on-await.stderr
CommitLineData
e1599b0c
XL
1error[E0609]: no field `await` on type `await_on_struct_missing::S`
2 --> $DIR/suggest-switching-edition-on-await.rs:9:7
3 |
4LL | x.await;
5 | ^^^^^ unknown field
6 |
5869c6ff 7 = note: to `.await` a `Future`, switch to Rust 2018 or later
ee023bcb 8 = help: pass `--edition 2021` to `rustc`
e1599b0c
XL
9 = note: for more on editions, read https://doc.rust-lang.org/edition-guide
10
11error[E0609]: no field `await` on type `await_on_struct_similar::S`
12 --> $DIR/suggest-switching-edition-on-await.rs:22:7
13 |
14LL | x.await;
15 | ^^^^^ help: a field with a similar name exists: `awai`
16 |
5869c6ff 17 = note: to `.await` a `Future`, switch to Rust 2018 or later
ee023bcb 18 = help: pass `--edition 2021` to `rustc`
e1599b0c
XL
19 = note: for more on editions, read https://doc.rust-lang.org/edition-guide
20
1b1a35ee 21error[E0609]: no field `await` on type `Pin<&mut dyn Future<Output = ()>>`
e1599b0c
XL
22 --> $DIR/suggest-switching-edition-on-await.rs:31:7
23 |
24LL | x.await;
25 | ^^^^^ unknown field
26 |
5869c6ff 27 = note: to `.await` a `Future`, switch to Rust 2018 or later
ee023bcb 28 = help: pass `--edition 2021` to `rustc`
e1599b0c
XL
29 = note: for more on editions, read https://doc.rust-lang.org/edition-guide
30
31error[E0609]: no field `await` on type `impl Future<Output = ()>`
32 --> $DIR/suggest-switching-edition-on-await.rs:40:7
33 |
34LL | x.await;
35 | ^^^^^
36 |
5869c6ff 37 = note: to `.await` a `Future`, switch to Rust 2018 or later
ee023bcb 38 = help: pass `--edition 2021` to `rustc`
e1599b0c
XL
39 = note: for more on editions, read https://doc.rust-lang.org/edition-guide
40
41error: aborting due to 4 previous errors
42
43For more information about this error, try `rustc --explain E0609`.