Sign in
fuchsia
/
third_party
/
rust
/
3c2fd1a72d2e8cc80b354b4d2dd7931a7afe1b02
/
.
/
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
}