Sign in
fuchsia
/
third_party
/
rust
/
e3029abfaec4252ab0ae7010780be0094d8870e0
/
.
/
src
/
tools
/
clippy
/
tests
/
ui
/
while_float.rs
blob: a3b0618948e6bbc40f4bb6ea3cc30ddf7cb3f960 [
file
] [
log
] [
blame
]
#[
deny
(
clippy
::
while_float
)]
fn
main
()
{
let
mut
x
=
0.0
_f32
;
while
x
<
42.0
_f32
{
x
+=
0.5
;
}
while
x
<
42.0
{
x
+=
1.0
;
}
let
mut
x
=
0
;
while
x
<
42
{
x
+=
1
;
}
}