Sign in
◑
Theme
rust
/
rust
/
8662be8340e5e2bc06fe16b7df0a7d02ebdf5e64
/
.
/
src
/
tools
/
clippy
/
tests
/
ui
/
while_float.rs
blob: 727b954ffcca8f22d7f404d6a37d23a376cb74f3 [
file
]
#[
deny
(
clippy
::
while_float
)]
fn
main
()
{
let
mut
x
=
0.0
_f32
;
while
x
<
42.0
_f32
{
//~^ while_float
x
+=
0.5
;
}
while
x
<
42.0
{
//~^ while_float
x
+=
1.0
;
}
let
mut
x
=
0
;
while
x
<
42
{
x
+=
1
;
}
}