2012-04-13 15:36:39 -05:00
|
|
|
fn foo(x: &uint) -> uint {
|
|
|
|
*x
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
2012-04-13 21:07:47 -05:00
|
|
|
let p = @22u;
|
2012-04-13 15:36:39 -05:00
|
|
|
let r = foo(p);
|
2012-07-30 18:01:07 -05:00
|
|
|
debug!{"r=%u", r};
|
2012-04-13 21:07:47 -05:00
|
|
|
assert r == 22u;
|
2012-04-13 15:36:39 -05:00
|
|
|
}
|