I am trying to compile a program that depends on rust-url. The program calls the parse
Url::parse and then uses the output (that can be an error). But the compiler (rustc 1.10.0-nightly (e0fd34bba 2016-05-09)) complains with the following error message.
error: mismatched types [E0308] help: run `rustc --explain E0308` to see a detailed explanation note: expected type `url::ParseError` note: found type `url::parser::ParseError`
Looking at the rust-url code, it seems that
url::ParseError is just the reexported
url::parser::ParseError and I cannot just use
url::parser::ParseError in my code because it is a private type of rust-url.