rust/src/test/run-pass/issue-2633-2.rs

9 lines
112 B
Rust
Raw Normal View History

fn a_val(&&x: ~int, +y: ~int) -> int {
*x + *y
}
fn main() {
let z = ~22;
2012-12-05 18:51:32 -06:00
a_val(copy z, copy z);
}