Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
ui
/
issues
/
issue-46302.rs
blob: ba681d84eff8411b3cee4dc5ae2b4b06511b2a32 [
file
]
fn
foo
()
{
let
s
=
"abc"
;
let
u
:
&
str
=
if
true
{
s
[..
2
]
}
else
{
s
};
//~^ ERROR mismatched types
}
fn
main
()
{
foo
();
}