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