Trait bounds are not checked on type aliases until they are used #51626
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-trait-system
Area: Trait system
C-bug
Category: This is a bug.
P-medium
Medium priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Consider the following code:
This builds without an error although
Qux
doesn't respect the trait bound.Build failure only occurs when one actually uses the type alias, like the following:
The text was updated successfully, but these errors were encountered: