mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00

Done with ```bash sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs ``` and ``` sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs ```
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() {}
|