2
0
Fork 0
mirror of https://github.com/rust-lang/rust-clippy synced 2024-12-18 09:03:18 +00:00
rust-clippy/tests/ui/integer_division.stderr
2019-06-12 09:37:14 -03:00

27 lines
722 B
Text

error: integer division
--> $DIR/integer_division.rs:5:13
|
LL | let n = 1 / 2;
| ^^^^^
|
= note: `-D clippy::integer-division` implied by `-D warnings`
= help: division of integers may cause loss of precision. consider using floats.
error: integer division
--> $DIR/integer_division.rs:6:13
|
LL | let o = 1 / two;
| ^^^^^^^
|
= help: division of integers may cause loss of precision. consider using floats.
error: integer division
--> $DIR/integer_division.rs:7:13
|
LL | let p = two / 4;
| ^^^^^^^
|
= help: division of integers may cause loss of precision. consider using floats.
error: aborting due to 3 previous errors