]> git.lizzy.rs Git - rust.git/blob - src/test/ui/inference/cannot-infer-async-enabled-impl-trait-bindings.stderr
Rollup merge of #77268 - follower:patch-3, r=jyn514
[rust.git] / src / test / ui / inference / cannot-infer-async-enabled-impl-trait-bindings.stderr
1 warning: the feature `impl_trait_in_bindings` is incomplete and may not be safe to use and/or cause compiler crashes
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    = note: see issue #63065 <https://github.com/rust-lang/rust/issues/63065> for more information
9
10 error[E0282]: type annotations needed for `impl Future`
11   --> $DIR/cannot-infer-async-enabled-impl-trait-bindings.rs:13:20
12    |
13 LL |     let fut = async {
14    |         --- consider giving `fut` the explicit type `impl Future`, with the type parameters specified
15 LL |         make_unit()?;
16    |                    ^ cannot infer type
17
18 error: aborting due to previous error; 1 warning emitted
19
20 For more information about this error, try `rustc --explain E0282`.