Allow vectors to contain unique boxes. Closes #952

Issue #409
This commit is contained in:
Brian Anderson 2011-09-22 16:20:36 -07:00
parent e372f943e2
commit 7a76323459
2 changed files with 4 additions and 1 deletions

View File

@ -1235,7 +1235,7 @@ fn type_is_pod(cx: ctxt, ty: t) -> bool {
result = true;
}
// Boxed types
ty_str. | ty_box(_) | ty_vec(_) | ty_fn(_, _, _, _, _) |
ty_str. | ty_box(_) | ty_uniq(_) | ty_vec(_) | ty_fn(_, _, _, _, _) |
ty_native_fn(_, _, _) | ty_obj(_) {
result = false;
}

View File

@ -0,0 +1,3 @@
fn main() {
assert [~100][0] == ~100;
}