rust/src/test/run-pass/coerce-reborrow-imm-ptr-arg.rs
2013-03-22 12:57:28 -07:00

14 lines
158 B
Rust

fn negate(x: &int) -> int {
-*x
}
fn negate_mut(y: &mut int) -> int {
negate(y)
}
fn negate_imm(y: &int) -> int {
negate(y)
}
pub fn main() {}