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