Recursive generics #118449
Labels
A-typesystem
Area: The type system
C-bug
Category: This is a bug.
I-hang
Issue: The compiler never terminates, due to infinite loops, deadlock, livelock, etc.
P-low
Low priority
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
S-has-mcve
Status: A Minimal Complete and Verifiable Example has been found for this issue
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code alone:
I expected to see this happen:
Being able to compile
ORerror message
.I also expect the following evaluation to be possible, breaking the recursion, because no further monomorphization is necessary:
which would produce
Instead, this happened: The compiler freezes.
Meta
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: