mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
parent
e372f943e2
commit
7a76323459
@ -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;
|
||||
}
|
||||
|
3
src/test/run-pass/unique-in-vec.rs
Normal file
3
src/test/run-pass/unique-in-vec.rs
Normal file
@ -0,0 +1,3 @@
|
||||
fn main() {
|
||||
assert [~100][0] == ~100;
|
||||
}
|
Loading…
Reference in New Issue
Block a user