rust/src/test/run-pass/vec-push.rs

5 lines
107 B
Rust
Raw Normal View History

fn push[T](&mutable vec[mutable? T] v, &T t) { v += [t]; }
fn main() { auto v = [1, 2, 3]; push(v, 1); }