mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-14 01:25:54 +00:00
13 lines
358 B
Plaintext
13 lines
358 B
Plaintext
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`?
|
|
= note: `-D clippy::almost-swapped` implied by `-D warnings`
|
|
|
|
error: aborting due to previous error
|
|
|