[Universes] Indirection allows calling of invalid trait method #57936
Labels
A-lifetimes
Area: Lifetimes / regions
A-trait-system
Area: Trait system
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
The following code has different behaviour depending on whether the associated function is called directly or through a method call. For example:
cc @nikomatsakis
The text was updated successfully, but these errors were encountered: