summaryrefslogtreecommitdiffstats
path: root/tests/ui/type-inference/or_else-multiple-type-params.stderr
blob: 6ac63a91ee9ac546637a527aa15d071bdcc688fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error[E0282]: type annotations needed for `Result<Child, F>`
  --> $DIR/or_else-multiple-type-params.rs:7:18
   |
LL |         .or_else(|err| {
   |                  ^^^^^
   |
help: try giving this closure an explicit return type
   |
LL |         .or_else(|err| -> Result<Child, F> {
   |                        +++++++++++++++++++

error: aborting due to previous error

For more information about this error, try `rustc --explain E0282`.