Impling a trait on T fails to make it accessable for generic types. #6898
Labels
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
Consider the following code:
I get the error:
Commenting out the
size_of
function, I then get this:I would have assumed that seeing as type
T
affects all types you would be able to use the impled methods even if there was no type constraint specified.The text was updated successfully, but these errors were encountered: