Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
suggestions
/
sugg-else-for-closure.rs
blob: d97467e4d3e3f36da1db8a8f0ecf5ef1dd5fd0a8 [
file
] [
log
] [
blame
] [
edit
]
//@ run-rustfix
fn
main
()
{
let
x
=
"com.example.app"
;
let
y
:
Option
<&
str
>
=
None
;
let
_s
=
y
.
unwrap_or
(||
x
.
split
(
'.'
).
nth
(
1
).
unwrap
());
//~^ ERROR: mismatched types [E0308]
}