Open bbigras opened 7 years ago
You either have to ask nom devs to do the impl (should be OK) or use a errors {} block.
Thanks. I opened an issue for nom https://github.com/Geal/nom/issues/581.
The error-chain crate made some changes. Now I get:
the trait `std::convert::From<nom::Err<&str>>` is not implemented for `errors::Error`
but if I do:
error_chain! {
foreign_links {
Nom(::nom::Err<&str>);
}
}
I get:
error[E0106]: missing lifetime specifier
--> src/main.rs:14:28
|
14 | Nom(::nom::Err<&str>);
| ^ expected lifetime parameter
Is there a way to specify a lifetime with error_chain!
?
No, sorry...