]> git.proxmox.com Git - rustc.git/blame - src/test/ui/async-await/async-error-span.stderr
New upstream version 1.49.0~beta.4+dfsg1
[rustc.git] / src / test / ui / async-await / async-error-span.stderr
CommitLineData
f035d41b 1error[E0277]: `()` is not a future
ba9703b0
XL
2 --> $DIR/async-error-span.rs:7:20
3 |
4LL | fn get_future() -> impl Future<Output = ()> {
f035d41b 5 | ^^^^^^^^^^^^^^^^^^^^^^^^ `()` is not a future
ba9703b0 6 |
1b1a35ee 7 = help: the trait `Future` is not implemented for `()`
ba9703b0 8
e74abb32 9error[E0698]: type inside `async fn` body must be known in this context
ba9703b0 10 --> $DIR/async-error-span.rs:13:9
416331ca
XL
11 |
12LL | let a;
13 | ^ cannot infer type
14 |
e74abb32 15note: the type is part of the `async fn` body because of this `await`
ba9703b0 16 --> $DIR/async-error-span.rs:14:5
416331ca
XL
17 |
18LL | get_future().await;
19 | ^^^^^^^^^^^^^^^^^^
20
ba9703b0 21error: aborting due to 2 previous errors
416331ca 22
ba9703b0
XL
23Some errors have detailed explanations: E0277, E0698.
24For more information about an error, try `rustc --explain E0277`.