parent
3bb7035914
commit
1367f2b63e
1 changed files with 9 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue