Internal compiler error upon deriving Debug for a generic type T with a default type argument that depends on T's lifetime parameter #29030
Labels
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
When you attempt to derive
Debug
for someT<'a, U: 'a = V<'a>>
, the compiler throwsType parameter out of range when substituting in region 'a
.See this playpen. Note that this works fine on beta and nightly; perhaps this would make a good regression test case.
Code
Error
Meta
rustc --version --verbose
Backtrace
The text was updated successfully, but these errors were encountered: