mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 15:11:30 +00:00
21 lines
459 B
Text
21 lines
459 B
Text
|
error: while condition comparing floats
|
||
|
--> tests/ui/while_float.rs:4:11
|
||
|
|
|
||
|
LL | while x < 42.0_f32 {
|
||
|
| ^^^^^^^^^^^^
|
||
|
|
|
||
|
note: the lint level is defined here
|
||
|
--> tests/ui/while_float.rs:1:8
|
||
|
|
|
||
|
LL | #[deny(clippy::while_float)]
|
||
|
| ^^^^^^^^^^^^^^^^^^^
|
||
|
|
||
|
error: while condition comparing floats
|
||
|
--> tests/ui/while_float.rs:7:11
|
||
|
|
|
||
|
LL | while x < 42.0 {
|
||
|
| ^^^^^^^^
|
||
|
|
||
|
error: aborting due to 2 previous errors
|
||
|
|