parent
3bb7035914
commit
1367f2b63e
9
src/test/run-pass/unique-fn-arg.rs
Normal file
9
src/test/run-pass/unique-fn-arg.rs
Normal file
@ -0,0 +1,9 @@
|
||||
fn f(i: ~int) {
|
||||
assert *i == 100;
|
||||
}
|
||||
|
||||
fn main() {
|
||||
f(~100);
|
||||
let i = ~100;
|
||||
f(i);
|
||||
}
|
Loading…
Reference in New Issue
Block a user