@@ -5,35 +5,25 @@ LL | foo()?;
55 | ^^^^^^ the `?` operator cannot be applied to type `impl Future`
66 |
77 = help: the trait `Try` is not implemented for `impl Future`
8- note: required by `branch`
9- --> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
10- |
11- LL | fn branch(self) -> ControlFlow<Self::Residual, Self::Output>;
12- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
138help: consider `await`ing on the `Future`
149 |
1510LL | foo().await?;
1611 | ++++++
1712
1813error[E0277]: the `?` operator can only be applied to values that implement `Try`
19- --> $DIR/issue-61076.rs:67 :5
14+ --> $DIR/issue-61076.rs:65 :5
2015 |
2116LL | t?;
2217 | ^^ the `?` operator cannot be applied to type `T`
2318 |
2419 = help: the trait `Try` is not implemented for `T`
25- note: required by `branch`
26- --> $SRC_DIR/core/src/ops/try_trait.rs:LL:COL
27- |
28- LL | fn branch(self) -> ControlFlow<Self::Residual, Self::Output>;
29- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3020help: consider `await`ing on the `Future`
3121 |
3222LL | t.await?;
3323 | ++++++
3424
3525error[E0609]: no field `0` on type `impl Future`
36- --> $DIR/issue-61076.rs:78 :26
26+ --> $DIR/issue-61076.rs:74 :26
3727 |
3828LL | let _: i32 = tuple().0;
3929 | ^ field not available in `impl Future`, but it is available in its `Output`
@@ -44,7 +34,7 @@ LL | let _: i32 = tuple().await.0;
4434 | ++++++
4535
4636error[E0609]: no field `a` on type `impl Future`
47- --> $DIR/issue-61076.rs:82 :28
37+ --> $DIR/issue-61076.rs:78 :28
4838 |
4939LL | let _: i32 = struct_().a;
5040 | ^ field not available in `impl Future`, but it is available in its `Output`
@@ -55,7 +45,7 @@ LL | let _: i32 = struct_().await.a;
5545 | ++++++
5646
5747error[E0599]: no method named `method` found for opaque type `impl Future` in the current scope
58- --> $DIR/issue-61076.rs:86 :15
48+ --> $DIR/issue-61076.rs:82 :15
5949 |
6050LL | struct_().method();
6151 | ^^^^^^ method not found in `impl Future`
@@ -66,13 +56,13 @@ LL | struct_().await.method();
6656 | ++++++
6757
6858error[E0308]: mismatched types
69- --> $DIR/issue-61076.rs:94 :9
59+ --> $DIR/issue-61076.rs:90 :9
7060 |
7161LL | Tuple(_) => {}
7262 | ^^^^^^^^ expected opaque type, found struct `Tuple`
7363 |
7464note: while checking the return type of the `async fn`
75- --> $DIR/issue-61076.rs:58 :21
65+ --> $DIR/issue-61076.rs:56 :21
7666 |
7767LL | async fn tuple() -> Tuple {
7868 | ^^^^^ checked the `Output` of this `async fn`, expected opaque type
0 commit comments