Sign in
fuchsia
/
third_party
/
rust
/
d782f09ae0b88a73a69e2fa3169222cdbc47d4ec
/
.
/
src
/
test
/
ui
/
coercion
/
coerce-mut.rs
blob: 409fb8e86beb9a8e2e547b181eed3b5252f037a1 [
file
] [
log
] [
blame
]
fn
f
(
x
:
&
mut
i32
)
{}
fn
main
()
{
let
x
=
0
;
f
(&
x
);
//~^ ERROR mismatched types
//~| expected type `&mut i32`
//~| found type `&{integer}`
//~| types differ in mutability
}