2023-10-06 10:35:45 -05:00
|
|
|
error: redundant redefinition of a binding `x`
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/redundant_locals.rs:13:5
|
2023-07-31 16:53:53 -05:00
|
|
|
|
|
|
|
|
LL | let x = x;
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2023-10-06 10:35:45 -05:00
|
|
|
help: `x` is initially defined here
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/redundant_locals.rs:12:9
|
2023-10-06 10:35:45 -05:00
|
|
|
|
|
|
|
|
LL | let x = 1;
|
|
|
|
| ^
|
2023-07-31 16:53:53 -05:00
|
|
|
= note: `-D clippy::redundant-locals` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::redundant_locals)]`
|
2023-07-31 16:53:53 -05:00
|
|
|
|
2023-10-06 10:35:45 -05:00
|
|
|
error: redundant redefinition of a binding `x`
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/redundant_locals.rs:18:5
|
2023-07-31 16:53:53 -05:00
|
|
|
|
|
|
|
|
LL | let mut x = x;
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-10-06 10:35:45 -05:00
|
|
|
help: `x` is initially defined here
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/redundant_locals.rs:17:9
|
2023-10-06 10:35:45 -05:00
|
|
|
|
|
|
|
|
LL | let mut x = 1;
|
|
|
|
| ^^^^^
|
2023-07-31 16:53:53 -05:00
|
|
|
|
2023-10-06 10:35:45 -05:00
|
|
|
error: redundant redefinition of a binding `x`
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/redundant_locals.rs:48:5
|
2023-10-06 10:35:45 -05:00
|
|
|
|
|
|
|
|
LL | let x = x;
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: `x` is initially defined here
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/redundant_locals.rs:47:14
|
2023-07-31 16:53:53 -05:00
|
|
|
|
|
|
|
|
LL | fn parameter(x: i32) {
|
|
|
|
| ^
|
2023-10-06 10:35:45 -05:00
|
|
|
|
|
|
|
error: redundant redefinition of a binding `x`
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/redundant_locals.rs:53:5
|
2023-10-06 10:35:45 -05:00
|
|
|
|
|
2023-07-31 16:53:53 -05:00
|
|
|
LL | let x = x;
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2023-10-06 10:35:45 -05:00
|
|
|
help: `x` is initially defined here
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/redundant_locals.rs:52:9
|
2023-07-31 16:53:53 -05:00
|
|
|
|
|
|
|
|
LL | let x = 1;
|
|
|
|
| ^
|
2023-10-06 10:35:45 -05:00
|
|
|
|
|
|
|
error: redundant redefinition of a binding `x`
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/redundant_locals.rs:54:5
|
2023-10-06 10:35:45 -05:00
|
|
|
|
|
2023-07-31 16:53:53 -05:00
|
|
|
LL | let x = x;
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2023-10-06 10:35:45 -05:00
|
|
|
help: `x` is initially defined here
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/redundant_locals.rs:53:9
|
2023-07-31 16:53:53 -05:00
|
|
|
|
|
|
|
|
LL | let x = x;
|
|
|
|
| ^
|
2023-10-06 10:35:45 -05:00
|
|
|
|
|
|
|
error: redundant redefinition of a binding `x`
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/redundant_locals.rs:55:5
|
2023-10-06 10:35:45 -05:00
|
|
|
|
|
2023-07-31 16:53:53 -05:00
|
|
|
LL | let x = x;
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2023-10-06 10:35:45 -05:00
|
|
|
help: `x` is initially defined here
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/redundant_locals.rs:54:9
|
2023-07-31 16:53:53 -05:00
|
|
|
|
|
|
|
|
LL | let x = x;
|
|
|
|
| ^
|
2023-10-06 10:35:45 -05:00
|
|
|
|
|
|
|
error: redundant redefinition of a binding `x`
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/redundant_locals.rs:56:5
|
2023-10-06 10:35:45 -05:00
|
|
|
|
|
2023-07-31 16:53:53 -05:00
|
|
|
LL | let x = x;
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2023-10-06 10:35:45 -05:00
|
|
|
help: `x` is initially defined here
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/redundant_locals.rs:55:9
|
2023-07-31 16:53:53 -05:00
|
|
|
|
|
|
|
|
LL | let x = x;
|
|
|
|
| ^
|
2023-10-06 10:35:45 -05:00
|
|
|
|
|
|
|
error: redundant redefinition of a binding `a`
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/redundant_locals.rs:62:5
|
2023-10-06 10:35:45 -05:00
|
|
|
|
|
|
|
|
LL | let a = a;
|
2023-07-31 16:53:53 -05:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2023-10-06 10:35:45 -05:00
|
|
|
help: `a` is initially defined here
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/redundant_locals.rs:60:9
|
2023-07-31 16:53:53 -05:00
|
|
|
|
|
|
|
|
LL | let a = 1;
|
|
|
|
| ^
|
2023-10-06 10:35:45 -05:00
|
|
|
|
|
|
|
error: redundant redefinition of a binding `b`
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/redundant_locals.rs:63:5
|
2023-10-06 10:35:45 -05:00
|
|
|
|
|
|
|
|
LL | let b = b;
|
2023-07-31 16:53:53 -05:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2023-10-06 10:35:45 -05:00
|
|
|
help: `b` is initially defined here
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/redundant_locals.rs:61:9
|
2023-07-31 16:53:53 -05:00
|
|
|
|
|
|
|
|
LL | let b = 2;
|
|
|
|
| ^
|
|
|
|
|
2023-10-06 10:35:45 -05:00
|
|
|
error: redundant redefinition of a binding `x`
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/redundant_locals.rs:69:9
|
2023-10-06 10:35:45 -05:00
|
|
|
|
|
|
|
|
LL | let x = x;
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: `x` is initially defined here
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/redundant_locals.rs:68:13
|
2023-07-31 16:53:53 -05:00
|
|
|
|
|
|
|
|
LL | let x = 1;
|
|
|
|
| ^
|
2023-10-06 10:35:45 -05:00
|
|
|
|
|
|
|
error: redundant redefinition of a binding `x`
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/redundant_locals.rs:76:9
|
2023-10-06 10:35:45 -05:00
|
|
|
|
|
2023-07-31 16:53:53 -05:00
|
|
|
LL | let x = x;
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2023-10-06 10:35:45 -05:00
|
|
|
help: `x` is initially defined here
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/redundant_locals.rs:75:13
|
2023-07-31 16:53:53 -05:00
|
|
|
|
|
|
|
|
LL | let x = 1;
|
|
|
|
| ^
|
2023-10-06 10:35:45 -05:00
|
|
|
|
|
|
|
error: redundant redefinition of a binding `x`
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/redundant_locals.rs:79:9
|
2023-10-06 10:35:45 -05:00
|
|
|
|
|
2023-07-31 16:53:53 -05:00
|
|
|
LL | let x = x;
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2023-10-06 10:35:45 -05:00
|
|
|
help: `x` is initially defined here
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/redundant_locals.rs:78:6
|
2023-07-31 16:53:53 -05:00
|
|
|
|
|
|
|
|
LL | |x: i32| {
|
|
|
|
| ^
|
2023-10-06 10:35:45 -05:00
|
|
|
|
|
|
|
error: redundant redefinition of a binding `x`
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/redundant_locals.rs:98:9
|
2023-10-06 10:35:45 -05:00
|
|
|
|
|
2023-07-31 16:53:53 -05:00
|
|
|
LL | let x = x;
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2023-10-06 10:35:45 -05:00
|
|
|
help: `x` is initially defined here
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/redundant_locals.rs:95:9
|
2023-07-31 16:53:53 -05:00
|
|
|
|
|
|
|
|
LL | let x = 1;
|
|
|
|
| ^
|
2023-10-06 10:35:45 -05:00
|
|
|
|
|
|
|
error: redundant redefinition of a binding `a`
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/redundant_locals.rs:153:5
|
2023-10-06 10:35:45 -05:00
|
|
|
|
|
|
|
|
LL | let a = a;
|
|
|
|
| ^^^^^^^^^^
|
2023-07-31 16:53:53 -05:00
|
|
|
|
|
2023-10-06 10:35:45 -05:00
|
|
|
help: `a` is initially defined here
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/redundant_locals.rs:151:9
|
2023-10-06 10:35:45 -05:00
|
|
|
|
|
|
|
|
LL | let a = WithoutDrop(1);
|
|
|
|
| ^
|
2023-07-31 16:53:53 -05:00
|
|
|
|
2023-10-06 10:35:45 -05:00
|
|
|
error: aborting due to 14 previous errors
|
2023-07-31 16:53:53 -05:00
|
|
|
|