]> git.proxmox.com Git - rustc.git/blob - src/test/ui/inference/cannot-infer-partial-try-return.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / inference / cannot-infer-partial-try-return.stderr
1 error[E0282]: type annotations needed for `Result<(), QualifiedError<_>>`
2 --> $DIR/cannot-infer-partial-try-return.rs:18:13
3 |
4 LL | let x = || -> Result<_, QualifiedError<_>> {
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6 |
7 help: try giving this closure an explicit return type
8 |
9 LL | let x = || -> Result<(), QualifiedError<_>> {
10 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0282`.