Skip to content

Commit f628003

Browse files
committed
Adda test for returning unique boxes
Issue #409
1 parent 7a76323 commit f628003

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

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

0 commit comments

Comments
 (0)