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