1 error: this looks like you are swapping elements of `foo` manually
4 11 | / let temp = foo[0];
5 12 | | foo[0] = foo[1];
7 | |_________________^ help: try `foo.swap(0, 1)`
9 = note: `-D manual-swap` implied by `-D warnings`
11 error: this looks like you are swapping elements of `foo` manually
14 20 | / let temp = foo[0];
15 21 | | foo[0] = foo[1];
17 | |_________________^ help: try `foo.swap(0, 1)`
19 = note: `-D manual-swap` implied by `-D warnings`
21 error: this looks like you are swapping elements of `foo` manually
24 29 | / let temp = foo[0];
25 30 | | foo[0] = foo[1];
27 | |_________________^ help: try `foo.swap(0, 1)`
29 = note: `-D manual-swap` implied by `-D warnings`
31 error: this looks like you are swapping `a` and `b` manually
38 | |_________^ help: try `std::mem::swap(&mut a, &mut b)`
40 = note: `-D manual-swap` implied by `-D warnings`
41 = note: or maybe you should use `std::mem::replace`?
43 error: this looks like you are swapping `c.0` and `a` manually
50 | |_________^ help: try `std::mem::swap(&mut c.0, &mut a)`
52 = note: `-D manual-swap` implied by `-D warnings`
53 = note: or maybe you should use `std::mem::replace`?
55 error: this looks like you are trying to swap `a` and `b`
60 | |_________^ help: try `std::mem::swap(&mut a, &mut b)`
62 = note: `-D almost-swapped` implied by `-D warnings`
63 = note: or maybe you should use `std::mem::replace`?
65 error: this looks like you are trying to swap `c.0` and `a`
70 | |___________^ help: try `std::mem::swap(&mut c.0, &mut a)`
72 = note: `-D almost-swapped` implied by `-D warnings`
73 = note: or maybe you should use `std::mem::replace`?
75 error: aborting due to previous error(s)
78 To learn more, run the command again with --verbose.