2021-10-24 23:32:53 -05:00
|
|
|
error: this looks like you are trying to swap `a` and `b`
|
2021-11-18 04:54:35 -06:00
|
|
|
--> $DIR/no_std_swap.rs:12:5
|
2021-10-24 23:32:53 -05: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
|
|
|
|
|