Rust treat Self as dynamic when it shouldn't #63593
Labels
A-associated-items
Area: Associated items (types, constants & functions)
A-trait-system
Area: Trait system
C-bug
Category: This is a bug.
F-associated_type_defaults
`#![feature(associated_type_defaults)]`
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Here is a sample code:
Which fails to compile with
OTOH if we add a special
This
associated type then we are completely fine:It looks like an undesirable behavior.
The text was updated successfully, but these errors were encountered: