diff options
Diffstat (limited to 'tests/ui/type-inference/or_else-multiple-type-params.stderr')
-rw-r--r-- | tests/ui/type-inference/or_else-multiple-type-params.stderr | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/type-inference/or_else-multiple-type-params.stderr b/tests/ui/type-inference/or_else-multiple-type-params.stderr new file mode 100644 index 000000000..6ac63a91e --- /dev/null +++ b/tests/ui/type-inference/or_else-multiple-type-params.stderr @@ -0,0 +1,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`. |