2017-12-10 13:47:55 -06:00
|
|
|
error[E0369]: binary operation `%` cannot be applied to type `&&{integer}`
|
|
|
|
--> $DIR/binary-op-on-double-ref.rs:14:9
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | x % 2 == 0
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^^
|
|
|
|
|
|
2018-05-09 04:38:09 -05:00
|
|
|
= help: `%` can be used on '{integer}', you can dereference `x`: `*x`
|
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`.
|