]> git.lizzy.rs Git - rust.git/blob - src/test/ui/inference/cannot-infer-async.stderr
Rollup merge of #82259 - osa1:issue82156, r=petrochenkov
[rust.git] / src / test / ui / inference / cannot-infer-async.stderr
1 error[E0282]: type annotations needed
2   --> $DIR/cannot-infer-async.rs:11:20
3    |
4 LL |     let fut = async {
5    |         --- consider giving `fut` a type
6 LL |         make_unit()?;
7    |                    ^ cannot infer type of error for `?` operator
8    |
9    = note: `?` implicitly converts the error value into a type implementing `From<std::io::Error>`
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0282`.