Adding a equality constraint on an associated type can break the checks #55697
Labels
A-associated-items
Area: Associated items (types, constants & functions)
A-trait-system
Area: Trait system
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following code works fine:
However if you change the last few lines for this:
Then you get:
(link to playground)
Using
type S = X;
also doesn't work.Rust version: nightly.
Apologize if an issue already exists. The vocabulary for this kind of problems is kind of tricky, which makes it hard to search for existing issues.
The text was updated successfully, but these errors were encountered: