Add a test for unique boxes as fn args

Issue #409
This commit is contained in:
Brian Anderson 2011-09-22 14:55:08 -07:00
parent 3bb7035914
commit 1367f2b63e

View File

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