]>
Commit | Line | Data |
---|---|---|
1b1a35ee | 1 | error[E0277]: the trait bound `Foo: Qux` is not satisfied in `impl Future` |
ba9703b0 | 2 | --> $DIR/issue-64130-3-other.rs:24:5 |
60c5eb7d XL |
3 | | |
4 | LL | fn is_qux<T: Qux>(t: T) { } | |
ba9703b0 | 5 | | --- required by this bound in `is_qux` |
dfeec247 XL |
6 | LL | |
7 | LL | async fn bar() { | |
1b1a35ee | 8 | | - within this `impl Future` |
60c5eb7d XL |
9 | ... |
10 | LL | is_qux(bar()); | |
1b1a35ee | 11 | | ^^^^^^ within `impl Future`, the trait `Qux` is not implemented for `Foo` |
60c5eb7d | 12 | | |
60c5eb7d | 13 | note: future does not implement `Qux` as this value is used across an await |
ba9703b0 | 14 | --> $DIR/issue-64130-3-other.rs:18:5 |
60c5eb7d XL |
15 | | |
16 | LL | let x = Foo; | |
ba9703b0 | 17 | | - has type `Foo` which does not implement `Qux` |
60c5eb7d XL |
18 | LL | baz().await; |
19 | | ^^^^^^^^^^^ await occurs here, with `x` maybe used later | |
20 | LL | } | |
21 | | - `x` is later dropped here | |
22 | ||
23 | error: aborting due to previous error | |
24 | ||
25 | For more information about this error, try `rustc --explain E0277`. |