Closed
Description
When code tries to use placement new with type that doesn't implement the proper arena methods, after printing out a reasonable diagnostic, rustc ICEs:
fn main() {
new (7) 43;
}
produces
nubs/bogus_arena.rs:2:4: 2:15 error: no `alloc()` method found for type `<VI0>`
nubs/bogus_arena.rs:2 new (7) 43;
^~~~~~~~~~~
error: internal compiler error: no type for node 4: unknown node (id=4) in fcx 7fed8813ecc0