core: Don't require a copyable T for vec::push

This commit is contained in:
Brian Anderson 2012-03-18 16:08:37 -07:00
parent b1eb4579c6
commit 397f33fd35

View File

@ -334,7 +334,7 @@ fn pop<T>(&v: [const T]) -> T unsafe {
}
#[doc = "Append an element to a vector"]
fn push<T: copy>(&v: [const T], initval: T) {
fn push<T>(&v: [const T], +initval: T) {
v += [initval];
}