Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
if
/
if-branch-types.rs
blob: 5c693194a76a136fed8bf108bab50bf3c11cce4e [
file
] [
log
] [
blame
]
fn
main
()
{
let
x
=
if
true
{
10i32
}
else
{
10u32
};
//~^ ERROR if and else have incompatible types
//~| expected `i32`, found `u32`
}