]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-inference/or_else-multiple-type-params.stderr
Rollup merge of #106717 - klensy:typo, r=lcnr
[rust.git] / tests / ui / type-inference / or_else-multiple-type-params.stderr
1 error[E0282]: type annotations needed for `Result<Child, F>`
2   --> $DIR/or_else-multiple-type-params.rs:7:18
3    |
4 LL |         .or_else(|err| {
5    |                  ^^^^^
6    |
7 help: try giving this closure an explicit return type
8    |
9 LL |         .or_else(|err| -> Result<Child, F> {
10    |                        +++++++++++++++++++
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0282`.