2
0
Fork 0
mirror of https://github.com/rust-lang/rust-clippy synced 2024-12-30 06:53:27 +00:00
rust-clippy/tests/ui/redundant_locals.stderr

173 lines
3.7 KiB
Text
Raw Normal View History

error: redundant redefinition of a binding `x`
2024-02-17 12:16:29 +00:00
--> tests/ui/redundant_locals.rs:13:5
|
LL | let x = x;
| ^^^^^^^^^^
|
help: `x` is initially defined here
2024-02-17 12:16:29 +00:00
--> tests/ui/redundant_locals.rs:12: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`
2024-02-17 12:16:29 +00:00
--> tests/ui/redundant_locals.rs:18:5
|
LL | let mut x = x;
| ^^^^^^^^^^^^^^
|
help: `x` is initially defined here
2024-02-17 12:16:29 +00:00
--> tests/ui/redundant_locals.rs:17:9
|
LL | let mut x = 1;
| ^^^^^
error: redundant redefinition of a binding `x`
2024-02-17 12:16:29 +00:00
--> tests/ui/redundant_locals.rs:48:5
|
LL | let x = x;
| ^^^^^^^^^^
|
help: `x` is initially defined here
2024-02-17 12:16:29 +00:00
--> tests/ui/redundant_locals.rs:47:14
|
LL | fn parameter(x: i32) {
| ^
error: redundant redefinition of a binding `x`
2024-02-17 12:16:29 +00:00
--> tests/ui/redundant_locals.rs:53:5
|
LL | let x = x;
| ^^^^^^^^^^
|
help: `x` is initially defined here
2024-02-17 12:16:29 +00:00
--> tests/ui/redundant_locals.rs:52:9
|
LL | let x = 1;
| ^
error: redundant redefinition of a binding `x`
2024-02-17 12:16:29 +00:00
--> tests/ui/redundant_locals.rs:54:5
|
LL | let x = x;
| ^^^^^^^^^^
|
help: `x` is initially defined here
2024-02-17 12:16:29 +00:00
--> tests/ui/redundant_locals.rs:53:9
|
LL | let x = x;
| ^
error: redundant redefinition of a binding `x`
2024-02-17 12:16:29 +00:00
--> tests/ui/redundant_locals.rs:55:5
|
LL | let x = x;
| ^^^^^^^^^^
|
help: `x` is initially defined here
2024-02-17 12:16:29 +00:00
--> tests/ui/redundant_locals.rs:54:9
|
LL | let x = x;
| ^
error: redundant redefinition of a binding `x`
2024-02-17 12:16:29 +00:00
--> tests/ui/redundant_locals.rs:56:5
|
LL | let x = x;
| ^^^^^^^^^^
|
help: `x` is initially defined here
2024-02-17 12:16:29 +00:00
--> tests/ui/redundant_locals.rs:55:9
|
LL | let x = x;
| ^
error: redundant redefinition of a binding `a`
2024-02-17 12:16:29 +00:00
--> tests/ui/redundant_locals.rs:62:5
|
LL | let a = a;
| ^^^^^^^^^^
|
help: `a` is initially defined here
2024-02-17 12:16:29 +00:00
--> tests/ui/redundant_locals.rs:60:9
|
LL | let a = 1;
| ^
error: redundant redefinition of a binding `b`
2024-02-17 12:16:29 +00:00
--> tests/ui/redundant_locals.rs:63:5
|
LL | let b = b;
| ^^^^^^^^^^
|
help: `b` is initially defined here
2024-02-17 12:16:29 +00:00
--> tests/ui/redundant_locals.rs:61:9
|
LL | let b = 2;
| ^
error: redundant redefinition of a binding `x`
2024-02-17 12:16:29 +00:00
--> tests/ui/redundant_locals.rs:69:9
|
LL | let x = x;
| ^^^^^^^^^^
|
help: `x` is initially defined here
2024-02-17 12:16:29 +00:00
--> tests/ui/redundant_locals.rs:68:13
|
LL | let x = 1;
| ^
error: redundant redefinition of a binding `x`
2024-02-17 12:16:29 +00:00
--> tests/ui/redundant_locals.rs:76:9
|
LL | let x = x;
| ^^^^^^^^^^
|
help: `x` is initially defined here
2024-02-17 12:16:29 +00:00
--> tests/ui/redundant_locals.rs:75:13
|
LL | let x = 1;
| ^
error: redundant redefinition of a binding `x`
2024-02-17 12:16:29 +00:00
--> tests/ui/redundant_locals.rs:79:9
|
LL | let x = x;
| ^^^^^^^^^^
|
help: `x` is initially defined here
2024-02-17 12:16:29 +00:00
--> tests/ui/redundant_locals.rs:78:6
|
LL | |x: i32| {
| ^
error: redundant redefinition of a binding `x`
2024-02-17 12:16:29 +00:00
--> tests/ui/redundant_locals.rs:98:9
|
LL | let x = x;
| ^^^^^^^^^^
|
help: `x` is initially defined here
2024-02-17 12:16:29 +00:00
--> tests/ui/redundant_locals.rs:95:9
|
LL | let x = 1;
| ^
error: redundant redefinition of a binding `a`
2024-02-17 12:16:29 +00:00
--> tests/ui/redundant_locals.rs:153: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
| ^^^^^^^^^^
|
help: `a` is initially defined here
2024-02-17 12:16:29 +00:00
--> tests/ui/redundant_locals.rs:151:9
|
LL | let a = WithoutDrop(1);
| ^
2023-10-03 12:22:54 +00:00
error: aborting due to 14 previous errors