Struct containing only associated type of generic may be too constraining variance wise #140109
Labels
C-bug
Category: This is a bug.
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
The following code is currently rejected by the compiler, because sub-typing for
S
is taken on the whole T and not only its associated type. Maybe this is something that could be improved?This also happens with nex-gen trait solver AFAICT.
The text was updated successfully, but these errors were encountered: