Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
src
/
test
/
ui
/
point-to-type-err-cause-on-impl-trait-return-2.rs
blob: 50f1fe873cb5fa1cd96f0eb31a185c3c161d4299 [
file
] [
log
] [
blame
]
fn
unrelated
()
->
Result
<(),
std
::
string
::
ParseError
>
{
// #57664
let
x
=
0
;
match
x
{
1
=>
{
let
property_value_as_string
=
"a"
.
parse
()?;
}
2
=>
{
let
value
:
&
bool
=
unsafe
{
&
42
};
//~^ ERROR mismatched types
}
};
Ok
(())
}
fn
main
()
{}