1 error[E0282]: type annotations needed for `Result<(), QualifiedError<_>>`
2 --> $DIR/cannot-infer-partial-try-return.rs:18:13
4 LL | let x = || -> Result<_, QualifiedError<_>> {
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 help: try giving this closure an explicit return type
9 LL | let x = || -> Result<(), QualifiedError<_>> {
10 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
12 error: aborting due to previous error
14 For more information about this error, try `rustc --explain E0282`.