Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
coercion
/
coerce-block-tail-26978.rs
blob: 96e0cefb95576fa043f5b117d9deace511a7a5a4 [
file
] [
log
] [
blame
] [
edit
]
//@ check-fail
fn
f
(
_
:
&
i32
)
{}
fn
main
()
{
let
x
=
Box
::
new
(
1i32
);
f
(&
x
);
f
(&(
x
));
f
(&{
x
});
//~^ ERROR mismatched types
}