rust/src/test/ui/binary-op-on-double-ref.stderr
Guillaume Gomez 2e104a77cf update tests
2018-03-14 00:53:24 +01:00

13 lines
501 B
Plaintext

error[E0369]: binary operation `%` cannot be applied to type `&&{integer}`
--> $DIR/binary-op-on-double-ref.rs:14:9
|
LL | x % 2 == 0
| ^^^^^
|
= note: this is a reference to a type that `%` can be applied to; you need to dereference this variable once for this operation to work
= note: an implementation of `std::ops::Rem` might be missing for `&&{integer}`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0369`.