]> git.proxmox.com Git - rustc.git/blame - src/test/ui/inference/cannot-infer-async-enabled-impl-trait-bindings.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / inference / cannot-infer-async-enabled-impl-trait-bindings.stderr
CommitLineData
e1599b0c
XL
1warning: the feature `impl_trait_in_bindings` is incomplete and may cause the compiler to crash
2 --> $DIR/cannot-infer-async-enabled-impl-trait-bindings.rs:2:12
3 |
4LL | #![feature(impl_trait_in_bindings)]
5 | ^^^^^^^^^^^^^^^^^^^^^^
6 |
7 = note: `#[warn(incomplete_features)]` on by default
8
9error[E0282]: type annotations needed for `impl std::future::Future`
10 --> $DIR/cannot-infer-async-enabled-impl-trait-bindings.rs:13:9
11 |
12LL | let fut = async {
13 | --- consider giving `fut` the explicit type `impl std::future::Future`, with the type parameters specified
14LL | make_unit()?;
15 | ^^^^^^^^^^^^ cannot infer type
16
ba9703b0 17error: aborting due to previous error; 1 warning emitted
e1599b0c
XL
18
19For more information about this error, try `rustc --explain E0282`.