Sign in
fuchsia
/
third_party
/
rust
/
346aec9b02f3c74f3fce97fd6bda24709d220e49
/
.
/
src
/
test
/
ui
/
if
/
if-let-arm-types.rs
blob: 1e8260a017da2b57d23842095944caf36fbe2536 [
file
] [
log
] [
blame
]
fn
main
()
{
if
let
Some
(
b
)
=
None
{
//~^ NOTE `if` and `else` have incompatible types
()
//~^ NOTE expected because of this
}
else
{
1
};
//~^^ ERROR: `if` and `else` have incompatible types
//~| NOTE expected `()`, found integer
}