7 lines
131 B
Rust
7 lines
131 B
Rust
fn main() {
|
|
let x = |a: (), b: ()| {
|
|
Err(a)?; //~ ERROR type annotations needed for the closure
|
|
Ok(b)
|
|
};
|
|
}
|