Sign in
fuchsia
/
third_party
/
rust
/
346aec9b02f3c74f3fce97fd6bda24709d220e49
/
.
/
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`
}