type mismatch resolving <Thing as FromStr>::Err == <Thing as FromStr>::Err
, with impl trait
#41407
Labels
A-impl-trait
Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Got this diagnostic trying to avoid having to look up what error type
hyper
'sUri
std::str::FromStr
impl returns by using<Uri as FromStr>::Err
as the error type ofFuture
and then returning it abstractly:fn foo() -> impl Future<Item=Uri, Error=<Uri as FromStr>::Err>
.Kinda sounds like #34257, but the diagnostic is more confusing and it seems to depend on
impl trait
.rustc 1.18.0-nightly (9f2abad 2017-04-18)
A reduced version with no external types (playground):
The text was updated successfully, but these errors were encountered: