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