Overflow evaluating the requirement on associated_type_defaults
bounded on the field it's being assigned
#137434
Labels
C-bug
Category: This is a bug.
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
I tried this code:
See playground.
I expected the associated type default to compile since the bound is valid when implementing the trait. In my mind
type A = T::A
should be compatible with theT: Trait<A = Self::A>
constraint;Instead, this happened:
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: