Skip to content

Commit 1367f2b

Browse files
committed
Add a test for unique boxes as fn args
Issue #409
1 parent 3bb7035 commit 1367f2b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/test/run-pass/unique-fn-arg.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
fn f(i: ~int) {
2+
assert *i == 100;
3+
}
4+
5+
fn main() {
6+
f(~100);
7+
let i = ~100;
8+
f(i);
9+
}

0 commit comments

Comments
 (0)