2019-08-12 16:50:46 -07:00
|
|
|
error[E0282]: type annotations needed
|
2020-06-27 21:36:35 +01:00
|
|
|
--> $DIR/cannot-infer-async.rs:11:20
|
2019-08-12 16:50:46 -07:00
|
|
|
|
|
|
|
|
LL | let fut = async {
|
|
|
|
| --- consider giving `fut` a type
|
|
|
|
LL | make_unit()?;
|
2021-01-02 19:10:52 -05:00
|
|
|
| ^ cannot infer type of error for `?` operator
|
2020-12-29 00:10:13 -05:00
|
|
|
|
|
2021-01-02 19:10:52 -05:00
|
|
|
= note: `?` implicitly converts the error value into a type implementing `From<std::io::Error>`
|
2019-08-12 16:50:46 -07:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0282`.
|