14 lines
158 B
Rust
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() {}
|