fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
1error[E0277]: the trait bound `Foo: Qux` is not satisfied in `impl std::future::Future` 2 --> $DIR/issue-64130-3-other.rs:23:5 3 | 4LL | fn is_qux<T: Qux>(t: T) { } 5 | ------ --- required by this bound in `is_qux` 6LL | 7LL | async fn bar() { 8 | - within this `impl std::future::Future` 9... 10LL | is_qux(bar()); 11 | ^^^^^^ within `impl std::future::Future`, the trait `Qux` is not implemented for `Foo` 12 | 13 = help: the following implementations were found: 14 <Foo as Qux> 15note: future does not implement `Qux` as this value is used across an await 16 --> $DIR/issue-64130-3-other.rs:17:5 17 | 18LL | let x = Foo; 19 | - has type `Foo` 20LL | baz().await; 21 | ^^^^^^^^^^^ await occurs here, with `x` maybe used later 22LL | } 23 | - `x` is later dropped here 24 25error: aborting due to previous error 26 27For more information about this error, try `rustc --explain E0277`.