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