Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
coercion
/
coerce-reborrow-imm-ptr-arg.rs
blob: f43b6dad71d32ac0c018dc3f5051088d54e3482a [
file
] [
log
] [
blame
]
//@ 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
()
{}