2021-12-06 11:33:31 +00:00
|
|
|
error: this looks like you are trying to swap `a` and `b`
|
|
|
|
--> $DIR/no_std_swap.rs:12:5
|
|
|
|
|
|
|
|
|
LL | / a = b;
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | |
|
|
|
|
LL | |
|
2021-12-06 11:33:31 +00:00
|
|
|
LL | | b = a;
|
|
|
|
| |_________^ help: try: `core::mem::swap(&mut a, &mut b)`
|
|
|
|
|
|
|
|
|
= note: or maybe you should use `core::mem::replace`?
|
2022-09-22 16:04:22 +00:00
|
|
|
= note: `-D clippy::almost-swapped` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::almost_swapped)]`
|
2021-12-06 11:33:31 +00:00
|
|
|
|
2023-11-21 17:08:42 +00:00
|
|
|
error: aborting due to 1 previous error
|
2021-12-06 11:33:31 +00:00
|
|
|
|