mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-30 08:30:45 +00:00
172 lines
3.6 KiB
Text
172 lines
3.6 KiB
Text
error: redundant redefinition of a binding `x`
|
|
--> $DIR/redundant_locals.rs:12:5
|
|
|
|
|
LL | let x = x;
|
|
| ^^^^^^^^^^
|
|
|
|
|
help: `x` is initially defined here
|
|
--> $DIR/redundant_locals.rs:11:9
|
|
|
|
|
LL | let x = 1;
|
|
| ^
|
|
= note: `-D clippy::redundant-locals` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::redundant_locals)]`
|
|
|
|
error: redundant redefinition of a binding `x`
|
|
--> $DIR/redundant_locals.rs:17:5
|
|
|
|
|
LL | let mut x = x;
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
help: `x` is initially defined here
|
|
--> $DIR/redundant_locals.rs:16:9
|
|
|
|
|
LL | let mut x = 1;
|
|
| ^^^^^
|
|
|
|
error: redundant redefinition of a binding `x`
|
|
--> $DIR/redundant_locals.rs:47:5
|
|
|
|
|
LL | let x = x;
|
|
| ^^^^^^^^^^
|
|
|
|
|
help: `x` is initially defined here
|
|
--> $DIR/redundant_locals.rs:46:14
|
|
|
|
|
LL | fn parameter(x: i32) {
|
|
| ^
|
|
|
|
error: redundant redefinition of a binding `x`
|
|
--> $DIR/redundant_locals.rs:52:5
|
|
|
|
|
LL | let x = x;
|
|
| ^^^^^^^^^^
|
|
|
|
|
help: `x` is initially defined here
|
|
--> $DIR/redundant_locals.rs:51:9
|
|
|
|
|
LL | let x = 1;
|
|
| ^
|
|
|
|
error: redundant redefinition of a binding `x`
|
|
--> $DIR/redundant_locals.rs:53:5
|
|
|
|
|
LL | let x = x;
|
|
| ^^^^^^^^^^
|
|
|
|
|
help: `x` is initially defined here
|
|
--> $DIR/redundant_locals.rs:52:9
|
|
|
|
|
LL | let x = x;
|
|
| ^
|
|
|
|
error: redundant redefinition of a binding `x`
|
|
--> $DIR/redundant_locals.rs:54:5
|
|
|
|
|
LL | let x = x;
|
|
| ^^^^^^^^^^
|
|
|
|
|
help: `x` is initially defined here
|
|
--> $DIR/redundant_locals.rs:53:9
|
|
|
|
|
LL | let x = x;
|
|
| ^
|
|
|
|
error: redundant redefinition of a binding `x`
|
|
--> $DIR/redundant_locals.rs:55:5
|
|
|
|
|
LL | let x = x;
|
|
| ^^^^^^^^^^
|
|
|
|
|
help: `x` is initially defined here
|
|
--> $DIR/redundant_locals.rs:54:9
|
|
|
|
|
LL | let x = x;
|
|
| ^
|
|
|
|
error: redundant redefinition of a binding `a`
|
|
--> $DIR/redundant_locals.rs:61:5
|
|
|
|
|
LL | let a = a;
|
|
| ^^^^^^^^^^
|
|
|
|
|
help: `a` is initially defined here
|
|
--> $DIR/redundant_locals.rs:59:9
|
|
|
|
|
LL | let a = 1;
|
|
| ^
|
|
|
|
error: redundant redefinition of a binding `b`
|
|
--> $DIR/redundant_locals.rs:62:5
|
|
|
|
|
LL | let b = b;
|
|
| ^^^^^^^^^^
|
|
|
|
|
help: `b` is initially defined here
|
|
--> $DIR/redundant_locals.rs:60:9
|
|
|
|
|
LL | let b = 2;
|
|
| ^
|
|
|
|
error: redundant redefinition of a binding `x`
|
|
--> $DIR/redundant_locals.rs:68:9
|
|
|
|
|
LL | let x = x;
|
|
| ^^^^^^^^^^
|
|
|
|
|
help: `x` is initially defined here
|
|
--> $DIR/redundant_locals.rs:67:13
|
|
|
|
|
LL | let x = 1;
|
|
| ^
|
|
|
|
error: redundant redefinition of a binding `x`
|
|
--> $DIR/redundant_locals.rs:75:9
|
|
|
|
|
LL | let x = x;
|
|
| ^^^^^^^^^^
|
|
|
|
|
help: `x` is initially defined here
|
|
--> $DIR/redundant_locals.rs:74:13
|
|
|
|
|
LL | let x = 1;
|
|
| ^
|
|
|
|
error: redundant redefinition of a binding `x`
|
|
--> $DIR/redundant_locals.rs:78:9
|
|
|
|
|
LL | let x = x;
|
|
| ^^^^^^^^^^
|
|
|
|
|
help: `x` is initially defined here
|
|
--> $DIR/redundant_locals.rs:77:6
|
|
|
|
|
LL | |x: i32| {
|
|
| ^
|
|
|
|
error: redundant redefinition of a binding `x`
|
|
--> $DIR/redundant_locals.rs:97:9
|
|
|
|
|
LL | let x = x;
|
|
| ^^^^^^^^^^
|
|
|
|
|
help: `x` is initially defined here
|
|
--> $DIR/redundant_locals.rs:94:9
|
|
|
|
|
LL | let x = 1;
|
|
| ^
|
|
|
|
error: redundant redefinition of a binding `a`
|
|
--> $DIR/redundant_locals.rs:152:5
|
|
|
|
|
LL | let a = a;
|
|
| ^^^^^^^^^^
|
|
|
|
|
help: `a` is initially defined here
|
|
--> $DIR/redundant_locals.rs:150:9
|
|
|
|
|
LL | let a = WithoutDrop(1);
|
|
| ^
|
|
|
|
error: aborting due to 14 previous errors
|
|
|