Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
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
}