fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
519 B14 linesraw
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`.