1 error: this looks like you are swapping elements of `foo` manually
4 11 | / let temp = foo[0];
5 12 | | foo[0] = foo[1];
9 = note: #[deny(manual_swap)] implied by #[deny(clippy)]
10 note: lint level defined here
18 error: this looks like you are swapping elements of `foo` manually
21 23 | / let temp = foo[0];
22 24 | | foo[0] = foo[1];
26 = note: #[deny(manual_swap)] implied by #[deny(clippy)]
30 error: this looks like you are swapping elements of `foo` manually
33 35 | / let temp = foo[0];
34 36 | | foo[0] = foo[1];
38 = note: #[deny(manual_swap)] implied by #[deny(clippy)]
42 error: this looks like you are swapping `a` and `b` manually
51 = note: #[deny(manual_swap)] implied by #[deny(clippy)]
53 | ; std::mem::swap(&mut a, &mut b);
54 = note: or maybe you should use `std::mem::replace`?
56 error: this looks like you are swapping `c.0` and `a` manually
65 = note: #[deny(manual_swap)] implied by #[deny(clippy)]
67 | ; std::mem::swap(&mut c.0, &mut a);
68 = note: or maybe you should use `std::mem::replace`?
70 error: this looks like you are trying to swap `a` and `b`
77 = note: #[deny(almost_swapped)] implied by #[deny(clippy)]
78 note: lint level defined here
84 | std::mem::swap(&mut a, &mut b);
85 = note: or maybe you should use `std::mem::replace`?
87 error: this looks like you are trying to swap `c.0` and `a`
94 = note: #[deny(almost_swapped)] implied by #[deny(clippy)]
96 | std::mem::swap(&mut c.0, &mut a);
97 = note: or maybe you should use `std::mem::replace`?
99 error: aborting due to 7 previous errors