We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents abaffa7 + 522f3f9 commit ecf931fCopy full SHA for ecf931f
tests/ui/crate_level_checks/no_std_swap.rs
@@ -6,7 +6,6 @@ use core::panic::PanicInfo;
6
7
#[warn(clippy::all)]
8
fn main() {
9
- // TODO: do somethjing with swap
10
let mut a = 42;
11
let mut b = 1337;
12
tests/ui/crate_level_checks/no_std_swap.stderr
@@ -1,5 +1,5 @@
1
error: this looks like you are trying to swap `a` and `b`
2
- --> $DIR/no_std_swap.rs:13:5
+ --> $DIR/no_std_swap.rs:12:5
3
|
4
LL | / a = b;
5
LL | | b = a;
0 commit comments