2021-10-25 12:32:53 +08:00
|
|
|
error: this looks like you are trying to swap `a` and `b`
|
2021-11-18 11:54:35 +01:00
|
|
|
--> $DIR/no_std_swap.rs:12:5
|
2021-10-25 12:32:53 +08:00
|
|
|
|
|
|
|
|
LL | / a = b;
|
|
|
|
LL | | b = a;
|
|
|
|
| |_________^ help: try: `core::mem::swap(&mut a, &mut b)`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::almost-swapped` implied by `-D warnings`
|
|
|
|
= note: or maybe you should use `core::mem::replace`?
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|