2023-01-30 19:54:33 +00:00
|
|
|
error[E0369]: cannot calculate the remainder of `&&{integer}` divided by `{integer}`
|
2020-06-23 17:32:06 -07:00
|
|
|
--> $DIR/binary-op-on-double-ref.rs:5:11
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | x % 2 == 0
|
2019-03-27 13:13:09 -04:00
|
|
|
| - ^ - {integer}
|
|
|
|
| |
|
|
|
|
| &&{integer}
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2022-09-04 21:11:50 +00:00
|
|
|
help: `%` can be used on `&{integer}` if you dereference the left-hand side
|
2020-06-23 17:32:06 -07:00
|
|
|
|
|
|
|
|
LL | *x % 2 == 0
|
2021-06-21 19:07:19 -07:00
|
|
|
| +
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-03-03 15:59:40 +01:00
|
|
|
For more information about this error, try `rustc --explain E0369`.
|