10 lines
108 B
Rust
10 lines
108 B
Rust
fn foo(x: &uint) -> uint {
|
|
*x
|
|
}
|
|
|
|
fn main() {
|
|
let p = ~3u;
|
|
let r = foo(p);
|
|
assert r == 3u;
|
|
}
|