You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0283]: type annotations needed
--> src/main.rs:31:24
|
31 | let base = map_res(digit1, |s: &str| s.parse::<u32>());
| ------- ^^^^^^ cannot infer type of the type parameter `E` declared on the function `digit1`
| |
| type must be known at this point
|
= note: cannot satisfy `_: FromExternalError<&str, ParseIntError>`
note: required by a bound in `map_res`
No idea why the example from the documentation would be failing here.
The text was updated successfully, but these errors were encountered:
I'm doing the example from the docs here: https://docs.rs/nom/latest/nom/combinator/fn.map_res.html
That gives:
No idea why the example from the documentation would be failing here.
The text was updated successfully, but these errors were encountered: