]> git.proxmox.com Git - rustc.git/blame - src/test/ui/async-await/issue-64130-3-other.stderr
New upstream version 1.43.0+dfsg1
[rustc.git] / src / test / ui / async-await / issue-64130-3-other.stderr
CommitLineData
60c5eb7d
XL
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`
dfeec247
XL
6LL |
7LL | async fn bar() {
8 | - within this `impl std::future::Future`
60c5eb7d
XL
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`.