]> git.proxmox.com Git - rustc.git/blame - src/test/ui/async-await/issue-64130-3-other.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / async-await / issue-64130-3-other.stderr
CommitLineData
1b1a35ee 1error[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 |
4LL | fn is_qux<T: Qux>(t: T) { }
ba9703b0 5 | --- required by this bound in `is_qux`
dfeec247
XL
6LL |
7LL | async fn bar() {
1b1a35ee 8 | - within this `impl Future`
60c5eb7d
XL
9...
10LL | is_qux(bar());
1b1a35ee 11 | ^^^^^^ within `impl Future`, the trait `Qux` is not implemented for `Foo`
60c5eb7d
XL
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
ba9703b0 16 --> $DIR/issue-64130-3-other.rs:18:5
60c5eb7d
XL
17 |
18LL | let x = Foo;
ba9703b0 19 | - has type `Foo` which does not implement `Qux`
60c5eb7d
XL
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`.