]>
git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/assign_ops2.rs
4 #[allow(unused_assignments)]
5 #[warn(misrefactored_assign_op, assign_op_pattern)]
26 // check that we don't lint on op assign impls, because that's just the way to impl them
28 use std
::ops
::{Mul, MulAssign}
;
30 #[derive(Copy, Clone, Debug, PartialEq)]
33 impl Mul
<i64> for Wrap
{
36 fn mul(self, rhs
: i64) -> Self {
41 impl MulAssign
<i64> for Wrap
{
42 fn mul_assign(&mut self, rhs
: i64) {