Skip to content

Commit

Permalink
core: Don't require a copyable T for vec::push
Browse files Browse the repository at this point in the history
  • Loading branch information
brson committed Mar 18, 2012
1 parent b1eb457 commit 397f33f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}

Expand Down

0 comments on commit 397f33f

Please sign in to comment.