rustc: Add a testcase for vector push (mutable aliases with *, really)

This commit is contained in:
Patrick Walton 2011-04-28 16:22:13 -07:00
parent 171883f437
commit f2fe26a821

View File

@ -0,0 +1,11 @@
// xfail-stage0
fn push[T](&mutable vec[mutable? T] v, &T t) {
v += vec(t);
}
fn main() {
auto v = @vec(1, 2, 3);
push(*v, 1);
}