Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
src
/
test
/
ui
/
integral-variable-unification-error.rs
blob: 3eefcdea3d902d4c43aaf12acc8f1752d2a76c09 [
file
] [
log
] [
blame
]
fn
main
()
{
let
mut
x
=
2
;
x
=
5.0
;
//~^ ERROR mismatched types
//~| expected type `{integer}`
//~| found type `{float}`
//~| expected integer, found floating-point number
}