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