rust/src/test/run-pass/vec-push.rs
Brian Anderson 856acbf66d Vectors containing pinned kinds become pinned
Otherwise they could be copied
2011-09-24 12:36:51 -07:00

5 lines
98 B
Rust

fn push<@T>(&v: [mutable? T], t: T) { v += [t]; }
fn main() { let v = [1, 2, 3]; push(v, 1); }