Type parameters checks are inconsistent and incomplete #22706
Labels
A-resolve
Area: Name/path resolution done by `rustc_resolve` specifically
C-bug
Category: This is a bug.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
The way we currently check type parameters is inconsistent and error prone. The code below compiles and it shouldn't.
The
resolve
phase currently ignores these checks and leaves them up totypeck
,collect
andcheck
, which as demonstrated by bugs like this one and #20302 makes this check unsound.The text was updated successfully, but these errors were encountered: