2019-06-11 16:53:12 +00:00
|
|
|
error: integer division
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/integer_division.rs:5:13
|
2019-06-11 16:53:12 +00:00
|
|
|
|
|
|
|
|
LL | let n = 1 / 2;
|
|
|
|
| ^^^^^
|
|
|
|
|
|
2021-03-12 14:30:50 +00:00
|
|
|
= help: division of integers may cause loss of precision. consider using floats
|
2022-09-22 16:04:22 +00:00
|
|
|
= note: `-D clippy::integer-division` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::integer_division)]`
|
2019-06-11 16:53:12 +00:00
|
|
|
|
|
|
|
error: integer division
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/integer_division.rs:7:13
|
2019-06-11 16:53:12 +00:00
|
|
|
|
|
|
|
|
LL | let o = 1 / two;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
2021-03-12 14:30:50 +00:00
|
|
|
= help: division of integers may cause loss of precision. consider using floats
|
2019-06-11 16:53:12 +00:00
|
|
|
|
|
|
|
error: integer division
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/integer_division.rs:9:13
|
2019-06-11 16:53:12 +00:00
|
|
|
|
|
|
|
|
LL | let p = two / 4;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
2021-03-12 14:30:50 +00:00
|
|
|
= help: division of integers may cause loss of precision. consider using floats
|
2019-06-11 16:53:12 +00:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|