Closed
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.