2024-02-08 13:24:42 -06:00
|
|
|
error: you are using modulo operator on types that might have different signs
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui-toml/modulo_arithmetic/modulo_arithmetic.rs:6:13
|
2024-02-08 13:24:42 -06:00
|
|
|
|
|
|
|
|
LL | let c = a % b == 0;
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= note: double check for expected result especially when interoperating with different languages
|
|
|
|
= note: or consider using `rem_euclid` or similar function
|
|
|
|
= note: `-D clippy::modulo-arithmetic` implied by `-D warnings`
|
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::modulo_arithmetic)]`
|
|
|
|
|
|
|
|
error: you are using modulo operator on types that might have different signs
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui-toml/modulo_arithmetic/modulo_arithmetic.rs:7:13
|
2024-02-08 13:24:42 -06:00
|
|
|
|
|
|
|
|
LL | let c = a % b != 0;
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= note: double check for expected result especially when interoperating with different languages
|
|
|
|
= note: or consider using `rem_euclid` or similar function
|
|
|
|
|
|
|
|
error: you are using modulo operator on types that might have different signs
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui-toml/modulo_arithmetic/modulo_arithmetic.rs:8:18
|
2024-02-08 13:24:42 -06:00
|
|
|
|
|
|
|
|
LL | let c = 0 == a % b;
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= note: double check for expected result especially when interoperating with different languages
|
|
|
|
= note: or consider using `rem_euclid` or similar function
|
|
|
|
|
|
|
|
error: you are using modulo operator on types that might have different signs
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui-toml/modulo_arithmetic/modulo_arithmetic.rs:9:18
|
2024-02-08 13:24:42 -06:00
|
|
|
|
|
|
|
|
LL | let c = 0 != a % b;
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= note: double check for expected result especially when interoperating with different languages
|
|
|
|
= note: or consider using `rem_euclid` or similar function
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|