Associated function from super traits not accessible via sub traits #124438
Labels
A-associated-items
Area: Associated items such as associated types and consts.
A-diagnostics
Area: Messages for errors, warnings, and lints
A-resolve
Area: Path resolution
A-trait-objects
Area: trait objects, vtable layout
C-bug
Category: This is a bug.
D-incorrect
Diagnostics: A diagnostic that is giving misleading or incorrect information.
D-verbose
Diagnostics: Too much output caused by a single piece of incorrect code.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
(play)
I expected to see this happen: the code compiles with either
Sub::assoc()
orSuper::assoc()
.Instead, this happened: five compilation errors which is very confusing:
Meta
rustc
version: 1.77.2.The text was updated successfully, but these errors were encountered: