rust-clippy/tests/ui/crate_level_checks/no_std_swap.stderr

16 lines
473 B
Text
Raw Normal View History

error: this looks like you are trying to swap `a` and `b`
--> tests/ui/crate_level_checks/no_std_swap.rs:12:5
|
LL | / a = b;
LL | |
LL | |
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`
= help: to override `-D warnings` add `#[allow(clippy::almost_swapped)]`
error: aborting due to 1 previous error