1 #![warn(clippy::arithmetic_side_effects)]
3 use core::ops::{Add, Neg};
14 fn add(self, other: Self) -> Self {
22 fn neg(self) -> Self::Output {
28 let _ = Point { x: 1, y: 0 } + Point { x: 2, y: 3 };
30 let point: Point = Point { x: 1, y: 0 };
31 let _ = point + point;