mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-15 01:55:03 +00:00
28 lines
719 B
Plaintext
28 lines
719 B
Plaintext
error: integer division
|
|
--> $DIR/integer_division.rs:5:13
|
|
|
|
|
LL | let n = 1 / 2;
|
|
| ^^^^^
|
|
|
|
|
= help: division of integers may cause loss of precision. consider using floats
|
|
= note: `-D clippy::integer-division` implied by `-D warnings`
|
|
|
|
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
|
|
|