Created
October 20, 2017 14:49
-
-
Save rrichardson/cccb2602e6acc6295563ad875c016114 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error[E0308]: mismatched types | |
--> /home/rick/.cargo/registry/src/github.com-1ecc6299db9ec823/config-0.7.0/src/path/parser.rs:68:32 | |
| | |
68 | return result.to_result(); | |
| ^^^^^^^^^^^^^^^^^^ expected enum `nom::ErrorKind`, found enum `nom::Err` | |
| | |
= note: expected type `std::result::Result<_, nom::ErrorKind>` | |
found type `std::result::Result<_, nom::Err<&[u8]>>` | |
error[E0308]: match arms have incompatible types | |
--> /home/rick/.cargo/registry/src/github.com-1ecc6299db9ec823/config-0.7.0/src/path/parser.rs:57:5 | |
| | |
57 | / match ident(input.as_bytes()) { | |
58 | | IResult::Done(mut rem, mut expr) => { | |
59 | | while !rem.is_empty() { | |
60 | | match postfix(expr)(rem) { | |
... | | |
77 | | result => result.to_result(), | |
78 | | } | |
| |_____^ expected enum `nom::ErrorKind`, found enum `nom::Err` | |
| | |
= note: expected type `std::result::Result<_, nom::ErrorKind>` | |
found type `std::result::Result<_, nom::Err<&[u8]>>` | |
note: match arm with an incompatible type | |
--> /home/rick/.cargo/registry/src/github.com-1ecc6299db9ec823/config-0.7.0/src/path/parser.rs:77:19 | |
| | |
77 | result => result.to_result(), | |
| ^^^^^^^^^^^^^^^^^^ | |
error: aborting due to 2 previous errors |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment