fork/rust
git clone https://git.julia.blue/fork/rust
b8cedc00407
1.42.0
1error[E0282]: type annotations needed for the closure `fn((), ()) -> std::result::Result<(), _>` 2 --> $DIR/cannot-infer-closure.rs:3:9 3 | 4LL | Err(a)?; 5 | ^^^^^^^ cannot infer type 6 | 7help: give this closure an explicit return type without `_` placeholders 8 | 9LL | let x = |a: (), b: ()| -> std::result::Result<(), _> { 10 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11 12error: aborting due to previous error 13 14For more information about this error, try `rustc --explain E0282`.