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
{{ message }}
Repository navigation
Associated types aren't normalized with impl cycles #31593
The error message seems reasonable to me now as we get
error[E0053]: method `badoowop` has an incompatible type for trait
--> src/main.rs:9:26
|
3 | fn badoowop(self) -> Self::Shaboom;
| ------------- type in trait
...
9 | fn badoowop(self) -> Self {
| ^^^^ expected associated type, found type parameter
|
= note: expected type `fn(T) -> <T as Doop>::Shaboom`
found type `fn(T) -> T`
= note: you might be missing a type parameter or trait bound
Activity
[-]Associated types aren't lowered with looped impls[/-][+]Associated types aren't normalized with looped impls[/+][-]Associated types aren't normalized with looped impls[/-][+]Associated types aren't normalized with impl cycles[/+]strega-nil commentedon Feb 12, 2016
Honestly, it probably just needs a better error message.
eddyb commentedon Feb 12, 2016
This seems related to #29859, but not... actually working?
AFAICT,
<T as Doop>in theimpl<T: Doop> of Doop for Tcannot refer to the same impl.cc @nikomatsakis
strega-nil commentedon Feb 12, 2016
@eddyb looks like the forest may have fixed this? #30533
oli-obk commentedon Jan 25, 2020
The error message seems reasonable to me now as we get
Please reopen if you disagree