2023-10-06 13:18:11 +00:00
|
|
|
error: redundant redefinition of a binding `x`
|
|
|
|
--> $DIR/redundant_locals.rs:12:5
|
2023-07-31 21:53:53 +00:00
|
|
|
|
|
|
|
|
LL | let x = x;
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2023-10-06 13:18:11 +00:00
|
|
|
help: `x` is initially defined here
|
|
|
|
--> $DIR/redundant_locals.rs:11:9
|
|
|
|
|
|
|
|
|
LL | let x = 1;
|
|
|
|
| ^
|
2023-07-31 21:53:53 +00:00
|
|
|
= 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
|
|
|
|
2023-10-06 13:18:11 +00:00
|
|
|
error: redundant redefinition of a binding `x`
|
|
|
|
--> $DIR/redundant_locals.rs:17:5
|
2023-07-31 21:53:53 +00:00
|
|
|
|
|
|
|
|
LL | let mut x = x;
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-10-06 13:18:11 +00:00
|
|
|
help: `x` is initially defined here
|
|
|
|
--> $DIR/redundant_locals.rs:16:9
|
|
|
|
|
|
|
|
|
LL | let mut x = 1;
|
|
|
|
| ^^^^^
|
2023-07-31 21:53:53 +00:00
|
|
|
|
2023-10-06 13:18:11 +00:00
|
|
|
error: redundant redefinition of a binding `x`
|
|
|
|
--> $DIR/redundant_locals.rs:47:5
|
|
|
|
|
|
|
|
|
LL | let x = x;
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: `x` is initially defined here
|
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) {
|
|
|
|
| ^
|
2023-10-06 13:18:11 +00:00
|
|
|
|
|
|
|
error: redundant redefinition of a binding `x`
|
|
|
|
--> $DIR/redundant_locals.rs:52:5
|
|
|
|
|
|
2023-07-31 21:53:53 +00:00
|
|
|
LL | let x = x;
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2023-10-06 13:18:11 +00:00
|
|
|
help: `x` is initially defined here
|
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;
|
|
|
|
| ^
|
2023-10-06 13:18:11 +00:00
|
|
|
|
|
|
|
error: redundant redefinition of a binding `x`
|
|
|
|
--> $DIR/redundant_locals.rs:53:5
|
|
|
|
|
|
2023-07-31 21:53:53 +00:00
|
|
|
LL | let x = x;
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2023-10-06 13:18:11 +00:00
|
|
|
help: `x` is initially defined here
|
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;
|
|
|
|
| ^
|
2023-10-06 13:18:11 +00:00
|
|
|
|
|
|
|
error: redundant redefinition of a binding `x`
|
|
|
|
--> $DIR/redundant_locals.rs:54:5
|
|
|
|
|
|
2023-07-31 21:53:53 +00:00
|
|
|
LL | let x = x;
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2023-10-06 13:18:11 +00:00
|
|
|
help: `x` is initially defined here
|
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;
|
|
|
|
| ^
|
2023-10-06 13:18:11 +00:00
|
|
|
|
|
|
|
error: redundant redefinition of a binding `x`
|
|
|
|
--> $DIR/redundant_locals.rs:55:5
|
|
|
|
|
|
2023-07-31 21:53:53 +00:00
|
|
|
LL | let x = x;
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2023-10-06 13:18:11 +00:00
|
|
|
help: `x` is initially defined here
|
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;
|
|
|
|
| ^
|
2023-10-06 13:18:11 +00:00
|
|
|
|
|
|
|
error: redundant redefinition of a binding `a`
|
|
|
|
--> $DIR/redundant_locals.rs:61:5
|
|
|
|
|
|
|
|
|
LL | let a = a;
|
2023-07-31 21:53:53 +00:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2023-10-06 13:18:11 +00:00
|
|
|
help: `a` is initially defined here
|
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;
|
|
|
|
| ^
|
2023-10-06 13:18:11 +00:00
|
|
|
|
|
|
|
error: redundant redefinition of a binding `b`
|
|
|
|
--> $DIR/redundant_locals.rs:62:5
|
|
|
|
|
|
|
|
|
LL | let b = b;
|
2023-07-31 21:53:53 +00:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2023-10-06 13:18:11 +00:00
|
|
|
help: `b` is initially defined here
|
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;
|
|
|
|
| ^
|
|
|
|
|
2023-10-06 13:18:11 +00:00
|
|
|
error: redundant redefinition of a binding `x`
|
|
|
|
--> $DIR/redundant_locals.rs:68:9
|
|
|
|
|
|
|
|
|
LL | let x = x;
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: `x` is initially defined here
|
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;
|
|
|
|
| ^
|
2023-10-06 13:18:11 +00:00
|
|
|
|
|
|
|
error: redundant redefinition of a binding `x`
|
|
|
|
--> $DIR/redundant_locals.rs:75:9
|
|
|
|
|
|
2023-07-31 21:53:53 +00:00
|
|
|
LL | let x = x;
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2023-10-06 13:18:11 +00:00
|
|
|
help: `x` is initially defined here
|
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;
|
|
|
|
| ^
|
2023-10-06 13:18:11 +00:00
|
|
|
|
|
|
|
error: redundant redefinition of a binding `x`
|
|
|
|
--> $DIR/redundant_locals.rs:78:9
|
|
|
|
|
|
2023-07-31 21:53:53 +00:00
|
|
|
LL | let x = x;
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2023-10-06 13:18:11 +00:00
|
|
|
help: `x` is initially defined here
|
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| {
|
|
|
|
| ^
|
2023-10-06 13:18:11 +00:00
|
|
|
|
|
|
|
error: redundant redefinition of a binding `x`
|
|
|
|
--> $DIR/redundant_locals.rs:97:9
|
|
|
|
|
|
2023-07-31 21:53:53 +00:00
|
|
|
LL | let x = x;
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2023-10-06 13:18:11 +00:00
|
|
|
help: `x` is initially defined here
|
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;
|
|
|
|
| ^
|
|
|
|
|
2023-10-06 13:18:11 +00:00
|
|
|
error: redundant redefinition of a binding `a`
|
2023-10-06 09:22:32 +00:00
|
|
|
--> $DIR/redundant_locals.rs:152:5
|
2023-10-03 12:22:54 +00:00
|
|
|
|
|
2023-10-03 15:13:53 +00:00
|
|
|
LL | let a = a;
|
2023-10-03 12:22:54 +00:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2023-10-06 13:18:11 +00:00
|
|
|
help: `a` is initially defined here
|
2023-10-06 09:22:32 +00:00
|
|
|
--> $DIR/redundant_locals.rs:150:9
|
2023-10-06 13:18:11 +00:00
|
|
|
|
|
|
|
|
LL | let a = WithoutDrop(1);
|
|
|
|
| ^
|
2023-10-03 12:22:54 +00:00
|
|
|
|
|
|
|
error: aborting due to 14 previous errors
|
2023-07-31 21:53:53 +00:00
|
|
|
|