]>
Commit | Line | Data |
---|---|---|
923072b8 | 1 | error[E0282]: type annotations needed |
17df50a5 | 2 | --> $DIR/cannot-infer-closure.rs:4:9 |
e1599b0c | 3 | | |
17df50a5 | 4 | LL | Ok(b) |
923072b8 | 5 | | ^^ cannot infer type of the type parameter `E` declared on the enum `Result` |
e74abb32 | 6 | | |
923072b8 | 7 | help: consider specifying the generic arguments |
e1599b0c | 8 | | |
923072b8 FG |
9 | LL | Ok::<(), E>(b) |
10 | | +++++++++ | |
e1599b0c XL |
11 | |
12 | error: aborting due to previous error | |
13 | ||
14 | For more information about this error, try `rustc --explain E0282`. |