Closed
Description
@am0d reported that this code: https://gist.github.com/3885764 causes this assertion failure:
Assertion failed: (Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!")```
The assertion failure is the same as in #2718, but it must be at least a slightly different bug, as the test for #2718 passes.
If I change the struct definition in the code to:
struct Tree {
mut leftTree: Option<@Tree>,
mut rightTree: Option<@Tree>,
key: int
}
it compiles successfully.