Add a test for mutable references to unique boxes as function arguments

Issue #409
This commit is contained in:
Brian Anderson 2011-09-22 15:03:44 -07:00
parent 1367f2b63e
commit 61a14f3df0

View File

@ -0,0 +1,9 @@
fn f(&i: ~int) {
i = ~200;
}
fn main() {
let i = ~100;
f(i);
assert *i == 200;
}