rust/tests/ui/integer_division.stderr

28 lines
719 B
Plaintext
Raw Normal View History

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