2019-08-12 16:50:46 -07:00
|
|
|
error[E0282]: type annotations needed
|
2021-04-17 11:56:07 -07:00
|
|
|
--> $DIR/cannot-infer-async.rs:13:9
|
2019-08-12 16:50:46 -07:00
|
|
|
|
|
|
|
|
LL | let fut = async {
|
|
|
|
| --- consider giving `fut` a type
|
2021-04-17 11:56:07 -07:00
|
|
|
...
|
|
|
|
LL | Ok(())
|
|
|
|
| ^^ cannot infer type for type parameter `E` declared on the enum `Result`
|
2019-08-12 16:50:46 -07:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0282`.
|