2012-07-18 13:01:54 -05:00
|
|
|
fn f(x : &a/int) -> &a/int {
|
2012-08-01 19:30:05 -05:00
|
|
|
return &*x;
|
2012-03-23 18:18:28 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
2012-05-23 23:47:11 -05:00
|
|
|
let three = &3;
|
2012-08-22 19:24:52 -05:00
|
|
|
log(error, fmt!("%d", *f(three)));
|
2012-03-23 18:18:28 -05:00
|
|
|
}
|
|
|
|
|