]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/binary-op-on-double-ref.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / binary-op-on-double-ref.stderr
index 07aa3bfe40dea06e94f2da26f0a40d493b70ed81..c89defa3dd196d97a4a8822a33b37b1a933b527a 100644 (file)
@@ -4,8 +4,7 @@ error[E0369]: binary operation `%` cannot be applied to type `&&{integer}`
 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}`
+   = help: `%` can be used on '{integer}', you can dereference `x`: `*x`
 
 error: aborting due to previous error