fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
2.9 KiB137 linesraw
1error: redundant redefinition of a binding
2  --> $DIR/redundant_locals.rs:11:9
3   |
4LL |     let x = 1;
5   |         ^
6LL |     let x = x;
7   |     ^^^^^^^^^^
8   |
9   = help: remove the redefinition of `x`
10   = note: `-D clippy::redundant-locals` implied by `-D warnings`
11   = help: to override `-D warnings` add `#[allow(clippy::redundant_locals)]`
12
13error: redundant redefinition of a binding
14  --> $DIR/redundant_locals.rs:16:9
15   |
16LL |     let mut x = 1;
17   |         ^^^^^
18LL |     let mut x = x;
19   |     ^^^^^^^^^^^^^^
20   |
21   = help: remove the redefinition of `x`
22
23error: redundant redefinition of a binding
24  --> $DIR/redundant_locals.rs:46:14
25   |
26LL | fn parameter(x: i32) {
27   |              ^
28LL |     let x = x;
29   |     ^^^^^^^^^^
30   |
31   = help: remove the redefinition of `x`
32
33error: redundant redefinition of a binding
34  --> $DIR/redundant_locals.rs:51:9
35   |
36LL |     let x = 1;
37   |         ^
38LL |     let x = x;
39   |     ^^^^^^^^^^
40   |
41   = help: remove the redefinition of `x`
42
43error: redundant redefinition of a binding
44  --> $DIR/redundant_locals.rs:52:9
45   |
46LL |     let x = x;
47   |         ^
48LL |     let x = x;
49   |     ^^^^^^^^^^
50   |
51   = help: remove the redefinition of `x`
52
53error: redundant redefinition of a binding
54  --> $DIR/redundant_locals.rs:53:9
55   |
56LL |     let x = x;
57   |         ^
58LL |     let x = x;
59   |     ^^^^^^^^^^
60   |
61   = help: remove the redefinition of `x`
62
63error: redundant redefinition of a binding
64  --> $DIR/redundant_locals.rs:54:9
65   |
66LL |     let x = x;
67   |         ^
68LL |     let x = x;
69   |     ^^^^^^^^^^
70   |
71   = help: remove the redefinition of `x`
72
73error: redundant redefinition of a binding
74  --> $DIR/redundant_locals.rs:59:9
75   |
76LL |     let a = 1;
77   |         ^
78LL |     let b = 2;
79LL |     let a = a;
80   |     ^^^^^^^^^^
81   |
82   = help: remove the redefinition of `a`
83
84error: redundant redefinition of a binding
85  --> $DIR/redundant_locals.rs:60:9
86   |
87LL |     let b = 2;
88   |         ^
89LL |     let a = a;
90LL |     let b = b;
91   |     ^^^^^^^^^^
92   |
93   = help: remove the redefinition of `b`
94
95error: redundant redefinition of a binding
96  --> $DIR/redundant_locals.rs:67:13
97   |
98LL |         let x = 1;
99   |             ^
100LL |         let x = x;
101   |         ^^^^^^^^^^
102   |
103   = help: remove the redefinition of `x`
104
105error: redundant redefinition of a binding
106  --> $DIR/redundant_locals.rs:74:13
107   |
108LL |         let x = 1;
109   |             ^
110LL |         let x = x;
111   |         ^^^^^^^^^^
112   |
113   = help: remove the redefinition of `x`
114
115error: redundant redefinition of a binding
116  --> $DIR/redundant_locals.rs:77:6
117   |
118LL |     |x: i32| {
119   |      ^
120LL |         let x = x;
121   |         ^^^^^^^^^^
122   |
123   = help: remove the redefinition of `x`
124
125error: redundant redefinition of a binding
126  --> $DIR/redundant_locals.rs:94:9
127   |
128LL |     let x = 1;
129   |         ^
130...
131LL |         let x = x;
132   |         ^^^^^^^^^^
133   |
134   = help: remove the redefinition of `x`
135
136error: aborting due to 13 previous errors
137