Overflow while adding drop-check rules on a generic tree #133356
Labels
C-bug
Category: This is a bug.
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
I tried this code:
I expected this to compile as it doesn't seem to unconditionally introduce a type of infinite length, but no luck, drop checking does not succeed.
When the type is not passed in as an argument, or passed by reference of course, there are no issues & the code compiles.
Meta
Reproduced on these versions,
rustc --version --verbose
:Error
The text was updated successfully, but these errors were encountered: