rust-clippy/tests/ui-toml/modulo_arithmetic/modulo_arithmetic.stderr

41 lines
1.6 KiB
Text
Raw Normal View History

error: you are using modulo operator on types that might have different signs
2024-01-25 09:38:43 +00:00
--> $DIR/modulo_arithmetic/modulo_arithmetic.rs:6:13
|
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-01-25 09:38:43 +00:00
--> $DIR/modulo_arithmetic/modulo_arithmetic.rs:7:13
|
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-01-25 09:38:43 +00:00
--> $DIR/modulo_arithmetic/modulo_arithmetic.rs:8:18
|
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-01-25 09:38:43 +00:00
--> $DIR/modulo_arithmetic/modulo_arithmetic.rs:9:18
|
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