Compiler bug related to evaluating requirement on recursive type #100867
Labels
C-bug
Category: This is a bug.
E-needs-mcve
Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
https://github.com/soooch/AdventOfCode/tree/ICE/2021/day16/part2
If packet.rs:133 is uncommented, the crate compiles without issue.
If instead you comment out packet.rs:98, the crate does not compile, but we get an error message about an overflow while evaluating a type.
This error message is perhaps what we should expect to see when compiling the original code.
// will try to find min repro later
Meta
rustc --version --verbose
:Bug exists in nightly as well:
Error output
Backtrace
The text was updated successfully, but these errors were encountered: