mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 01:10:36 +00:00
17 lines
205 B
Rust
17 lines
205 B
Rust
//@ run-pass
|
|
#![allow(dead_code)]
|
|
|
|
fn negate(x: &isize) -> isize {
|
|
-*x
|
|
}
|
|
|
|
fn negate_mut(y: &mut isize) -> isize {
|
|
negate(y)
|
|
}
|
|
|
|
fn negate_imm(y: &isize) -> isize {
|
|
negate(y)
|
|
}
|
|
|
|
pub fn main() {}
|