Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
if
/
if-let-arm-types.rs
blob: cae4f0974c6c4bf5812851764fd1ae6602005860 [
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
}