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