Trait aliases make it possible to sidestep various syntactic trait bound checks #135342
Labels
C-bug
Category: This is a bug.
F-trait_alias
`#![feature(trait_alias)]`
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.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
Similar to how type aliases allow you to circumvent some syntactic/syntax-driven1 checks made by AST lowering (#132212), you can utilize trait aliases to bypass certain restrictions applying to trait bounds.
This either calls into question the very existence of these restrictions or it demonstrates that all of these checks ought to run "later" (i.e., after trait alias expansion).
Footnotes
I.e., checks on the AST or HIR without any sort of prior substitution/expansion/normalization/... ↩
The text was updated successfully, but these errors were encountered: