fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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