bd573becf5
improve error message to describe kind of deref'd ptr using sigil
10 lines
119 B
Rust
10 lines
119 B
Rust
fn f(x : &a.int) -> &a.int {
|
|
ret &*x;
|
|
}
|
|
|
|
fn main() {
|
|
let three = &3;
|
|
log(error, #fmt("%d", *f(three)));
|
|
}
|
|
|