-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Description
Expected: Not sure, maybe some error about fat pointers growing unboundedly.
Actual: Uncommenting either line results in ICE.
What I am trying to achieve is something like:
struct Node: {
population: u16,
children: [Option<Node>; popcount(population)]
}
This general pattern (lengths depending on prior values) is useful for building data structures. It does not seem to be covered by DST and otherwise requires unsafe.
Metadata
Metadata
Assignees
Labels
I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️