]> git.proxmox.com Git - rustc.git/blob - src/test/ui/async-await/issue-61076.stderr
New upstream version 1.45.0+dfsg1
[rustc.git] / src / test / ui / async-await / issue-61076.stderr
1 error[E0277]: the `?` operator can only be applied to values that implement `std::ops::Try`
2 --> $DIR/issue-61076.rs:22:5
3 |
4 LL | foo()?;
5 | ^^^^^^
6 | |
7 | the `?` operator cannot be applied to type `impl std::future::Future`
8 | help: consider using `.await` here: `foo().await?`
9 |
10 = help: the trait `std::ops::Try` is not implemented for `impl std::future::Future`
11 = note: required by `std::ops::Try::into_result`
12
13 error[E0277]: the `?` operator can only be applied to values that implement `std::ops::Try`
14 --> $DIR/issue-61076.rs:28:5
15 |
16 LL | t?;
17 | ^^
18 | |
19 | the `?` operator cannot be applied to type `T`
20 | help: consider using `.await` here: `t.await?`
21 |
22 = help: the trait `std::ops::Try` is not implemented for `T`
23 = note: required by `std::ops::Try::into_result`
24
25 error: aborting due to 2 previous errors
26
27 For more information about this error, try `rustc --explain E0277`.