Skip to content

Commit 397f33f

Browse files
committed
core: Don't require a copyable T for vec::push
1 parent b1eb457 commit 397f33f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ fn pop<T>(&v: [const T]) -> T unsafe {
334334
}
335335

336336
#[doc = "Append an element to a vector"]
337-
fn push<T: copy>(&v: [const T], initval: T) {
337+
fn push<T>(&v: [const T], +initval: T) {
338338
v += [initval];
339339
}
340340

0 commit comments

Comments
 (0)