]>
Commit | Line | Data |
---|---|---|
e1599b0c XL |
1 | warning: 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 | | | |
4 | LL | #![feature(impl_trait_in_bindings)] | |
5 | | ^^^^^^^^^^^^^^^^^^^^^^ | |
6 | | | |
7 | = note: `#[warn(incomplete_features)]` on by default | |
8 | ||
9 | error[E0282]: type annotations needed for `impl std::future::Future` | |
10 | --> $DIR/cannot-infer-async-enabled-impl-trait-bindings.rs:13:9 | |
11 | | | |
12 | LL | let fut = async { | |
13 | | --- consider giving `fut` the explicit type `impl std::future::Future`, with the type parameters specified | |
14 | LL | make_unit()?; | |
15 | | ^^^^^^^^^^^^ cannot infer type | |
16 | ||
ba9703b0 | 17 | error: aborting due to previous error; 1 warning emitted |
e1599b0c XL |
18 | |
19 | For more information about this error, try `rustc --explain E0282`. |