-
-
Notifications
You must be signed in to change notification settings - Fork 15k
Generic impls of traits don't autoderef #10456
Copy link
Copy link
Closed
Labels
A-trait-systemArea: Trait systemArea: Trait systemE-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
Description
Metadata
Metadata
Assignees
Labels
A-trait-systemArea: Trait systemArea: Trait systemE-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
Type
Fields
Give feedbackNo fields configured for issues without a type.
From a code-writer point of view, it'd be nice for
tto auto-deref to(*t).bar()to appease the compiler, but I can see that the compiler may not know a whole lot about this.If we don't get auto-deref here, perhaps a better error message may work. It's a little confusing to see that
~Foo doesn't implement BazwhenFooclearly implementsBaz