2023-07-31 21:53:53 +00:00
|
|
|
error: redundant redefinition of a binding
|
|
|
|
--> $DIR/redundant_locals.rs:11:9
|
|
|
|
|
|
|
|
|
LL | let x = 1;
|
|
|
|
| ^
|
|
|
|
LL | let x = x;
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: remove the redefinition of `x`
|
|
|
|
= note: `-D clippy::redundant-locals` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::redundant_locals)]`
|
2023-07-31 21:53:53 +00:00
|
|
|
|
|
|
|
error: redundant redefinition of a binding
|
|
|
|
--> $DIR/redundant_locals.rs:16:9
|
|
|
|
|
|
|
|
|
LL | let mut x = 1;
|
|
|
|
| ^^^^^
|
|
|
|
LL | let mut x = x;
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: remove the redefinition of `x`
|
|
|
|
|
|
|
|
error: redundant redefinition of a binding
|
2023-08-11 12:05:13 +00:00
|
|
|
--> $DIR/redundant_locals.rs:46:14
|
2023-07-31 21:53:53 +00:00
|
|
|
|
|
|
|
|
LL | fn parameter(x: i32) {
|
|
|
|
| ^
|
|
|
|
LL | let x = x;
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: remove the redefinition of `x`
|
|
|
|
|
|
|
|
error: redundant redefinition of a binding
|
2023-08-11 12:05:13 +00:00
|
|
|
--> $DIR/redundant_locals.rs:51:9
|
2023-07-31 21:53:53 +00:00
|
|
|
|
|
|
|
|
LL | let x = 1;
|
|
|
|
| ^
|
|
|
|
LL | let x = x;
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: remove the redefinition of `x`
|
|
|
|
|
|
|
|
error: redundant redefinition of a binding
|
2023-08-11 12:05:13 +00:00
|
|
|
--> $DIR/redundant_locals.rs:52:9
|
2023-07-31 21:53:53 +00:00
|
|
|
|
|
|
|
|
LL | let x = x;
|
|
|
|
| ^
|
|
|
|
LL | let x = x;
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: remove the redefinition of `x`
|
|
|
|
|
|
|
|
error: redundant redefinition of a binding
|
2023-08-11 12:05:13 +00:00
|
|
|
--> $DIR/redundant_locals.rs:53:9
|
2023-07-31 21:53:53 +00:00
|
|
|
|
|
|
|
|
LL | let x = x;
|
|
|
|
| ^
|
|
|
|
LL | let x = x;
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: remove the redefinition of `x`
|
|
|
|
|
|
|
|
error: redundant redefinition of a binding
|
2023-08-11 12:05:13 +00:00
|
|
|
--> $DIR/redundant_locals.rs:54:9
|
2023-07-31 21:53:53 +00:00
|
|
|
|
|
|
|
|
LL | let x = x;
|
|
|
|
| ^
|
|
|
|
LL | let x = x;
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: remove the redefinition of `x`
|
|
|
|
|
|
|
|
error: redundant redefinition of a binding
|
2023-08-11 12:05:13 +00:00
|
|
|
--> $DIR/redundant_locals.rs:59:9
|
2023-07-31 21:53:53 +00:00
|
|
|
|
|
|
|
|
LL | let a = 1;
|
|
|
|
| ^
|
|
|
|
LL | let b = 2;
|
|
|
|
LL | let a = a;
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: remove the redefinition of `a`
|
|
|
|
|
|
|
|
error: redundant redefinition of a binding
|
2023-08-11 12:05:13 +00:00
|
|
|
--> $DIR/redundant_locals.rs:60:9
|
2023-07-31 21:53:53 +00:00
|
|
|
|
|
|
|
|
LL | let b = 2;
|
|
|
|
| ^
|
|
|
|
LL | let a = a;
|
|
|
|
LL | let b = b;
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: remove the redefinition of `b`
|
|
|
|
|
|
|
|
error: redundant redefinition of a binding
|
2023-08-11 12:05:13 +00:00
|
|
|
--> $DIR/redundant_locals.rs:67:13
|
2023-07-31 21:53:53 +00:00
|
|
|
|
|
|
|
|
LL | let x = 1;
|
|
|
|
| ^
|
|
|
|
LL | let x = x;
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: remove the redefinition of `x`
|
|
|
|
|
|
|
|
error: redundant redefinition of a binding
|
2023-08-11 12:05:13 +00:00
|
|
|
--> $DIR/redundant_locals.rs:74:13
|
2023-07-31 21:53:53 +00:00
|
|
|
|
|
|
|
|
LL | let x = 1;
|
|
|
|
| ^
|
|
|
|
LL | let x = x;
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: remove the redefinition of `x`
|
|
|
|
|
|
|
|
error: redundant redefinition of a binding
|
2023-08-11 12:05:13 +00:00
|
|
|
--> $DIR/redundant_locals.rs:77:6
|
2023-07-31 21:53:53 +00:00
|
|
|
|
|
|
|
|
LL | |x: i32| {
|
|
|
|
| ^
|
|
|
|
LL | let x = x;
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: remove the redefinition of `x`
|
|
|
|
|
|
|
|
error: redundant redefinition of a binding
|
2023-08-11 12:05:13 +00:00
|
|
|
--> $DIR/redundant_locals.rs:94:9
|
2023-07-31 21:53:53 +00:00
|
|
|
|
|
|
|
|
LL | let x = 1;
|
|
|
|
| ^
|
|
|
|
...
|
|
|
|
LL | let x = x;
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: remove the redefinition of `x`
|
|
|
|
|
|
|
|
error: aborting due to 13 previous errors
|
|
|
|
|