2021-12-06 05:33:31 -06:00
|
|
|
error: this looks like you are trying to swap `a` and `b`
|
|
|
|
--> $DIR/no_std_swap.rs:12:5
|
|
|
|
|
|
|
|
|
LL | / a = b;
|
|
|
|
LL | | b = a;
|
|
|
|
| |_________^ help: try: `core::mem::swap(&mut a, &mut b)`
|
|
|
|
|
|
|
|
|
= note: or maybe you should use `core::mem::replace`?
|
2022-09-22 11:04:22 -05:00
|
|
|
= note: `-D clippy::almost-swapped` implied by `-D warnings`
|
2021-12-06 05:33:31 -06:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|