1 error[E0277]: the `?` operator can only be applied to values that implement `Try`
2 --> $DIR/issue-61076.rs:42:5
5 | ^^^^^^ the `?` operator cannot be applied to type `impl Future<Output = Result<(), ()>>`
7 = help: the trait `Try` is not implemented for `impl Future<Output = Result<(), ()>>`
8 help: consider `await`ing on the `Future`
13 error[E0277]: the `?` operator can only be applied to values that implement `Try`
14 --> $DIR/issue-61076.rs:62:5
17 | ^^ the `?` operator cannot be applied to type `T`
19 = help: the trait `Try` is not implemented for `T`
20 help: consider `await`ing on the `Future`
25 error[E0609]: no field `0` on type `impl Future<Output = Tuple>`
26 --> $DIR/issue-61076.rs:71:26
28 LL | let _: i32 = tuple().0;
29 | ^ field not available in `impl Future`, but it is available in its `Output`
31 help: consider `await`ing on the `Future` and access the field of its `Output`
33 LL | let _: i32 = tuple().await.0;
36 error[E0609]: no field `a` on type `impl Future<Output = Struct>`
37 --> $DIR/issue-61076.rs:75:28
39 LL | let _: i32 = struct_().a;
40 | ^ field not available in `impl Future`, but it is available in its `Output`
42 help: consider `await`ing on the `Future` and access the field of its `Output`
44 LL | let _: i32 = struct_().await.a;
47 error[E0599]: no method named `method` found for opaque type `impl Future<Output = Struct>` in the current scope
48 --> $DIR/issue-61076.rs:79:15
50 LL | struct_().method();
51 | ^^^^^^ method not found in `impl Future<Output = Struct>`
53 help: consider `await`ing on the `Future` and calling the method on its `Output`
55 LL | struct_().await.method();
58 error[E0308]: mismatched types
59 --> $DIR/issue-61076.rs:88:9
62 | ------- this expression has type `impl Future<Output = Tuple>`
65 | ^^^^^^^^ expected opaque type, found `Tuple`
67 = note: expected opaque type `impl Future<Output = Tuple>`
69 help: consider `await`ing on the `Future`
71 LL | match tuple().await {
74 error: aborting due to 6 previous errors
76 Some errors have detailed explanations: E0277, E0308, E0599, E0609.
77 For more information about an error, try `rustc --explain E0277`.