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