|
1 | 1 | error: redundant redefinition of a binding `x` |
2 | | - --> $DIR/redundant_locals.rs:12:5 |
| 2 | + --> $DIR/redundant_locals.rs:13:5 |
3 | 3 | | |
4 | 4 | LL | let x = x; |
5 | 5 | | ^^^^^^^^^^ |
6 | 6 | | |
7 | 7 | help: `x` is initially defined here |
8 | | - --> $DIR/redundant_locals.rs:11:9 |
| 8 | + --> $DIR/redundant_locals.rs:12:9 |
9 | 9 | | |
10 | 10 | LL | let x = 1; |
11 | 11 | | ^ |
12 | 12 | = note: `-D clippy::redundant-locals` implied by `-D warnings` |
13 | 13 | = help: to override `-D warnings` add `#[allow(clippy::redundant_locals)]` |
14 | 14 |
|
15 | 15 | error: redundant redefinition of a binding `x` |
16 | | - --> $DIR/redundant_locals.rs:17:5 |
| 16 | + --> $DIR/redundant_locals.rs:18:5 |
17 | 17 | | |
18 | 18 | LL | let mut x = x; |
19 | 19 | | ^^^^^^^^^^^^^^ |
20 | 20 | | |
21 | 21 | help: `x` is initially defined here |
22 | | - --> $DIR/redundant_locals.rs:16:9 |
| 22 | + --> $DIR/redundant_locals.rs:17:9 |
23 | 23 | | |
24 | 24 | LL | let mut x = 1; |
25 | 25 | | ^^^^^ |
26 | 26 |
|
27 | 27 | error: redundant redefinition of a binding `x` |
28 | | - --> $DIR/redundant_locals.rs:47:5 |
| 28 | + --> $DIR/redundant_locals.rs:48:5 |
29 | 29 | | |
30 | 30 | LL | let x = x; |
31 | 31 | | ^^^^^^^^^^ |
32 | 32 | | |
33 | 33 | help: `x` is initially defined here |
34 | | - --> $DIR/redundant_locals.rs:46:14 |
| 34 | + --> $DIR/redundant_locals.rs:47:14 |
35 | 35 | | |
36 | 36 | LL | fn parameter(x: i32) { |
37 | 37 | | ^ |
38 | 38 |
|
39 | 39 | error: redundant redefinition of a binding `x` |
40 | | - --> $DIR/redundant_locals.rs:52:5 |
| 40 | + --> $DIR/redundant_locals.rs:53:5 |
41 | 41 | | |
42 | 42 | LL | let x = x; |
43 | 43 | | ^^^^^^^^^^ |
44 | 44 | | |
45 | 45 | help: `x` is initially defined here |
46 | | - --> $DIR/redundant_locals.rs:51:9 |
| 46 | + --> $DIR/redundant_locals.rs:52:9 |
47 | 47 | | |
48 | 48 | LL | let x = 1; |
49 | 49 | | ^ |
50 | 50 |
|
51 | 51 | error: redundant redefinition of a binding `x` |
52 | | - --> $DIR/redundant_locals.rs:53:5 |
| 52 | + --> $DIR/redundant_locals.rs:54:5 |
53 | 53 | | |
54 | 54 | LL | let x = x; |
55 | 55 | | ^^^^^^^^^^ |
56 | 56 | | |
57 | 57 | help: `x` is initially defined here |
58 | | - --> $DIR/redundant_locals.rs:52:9 |
| 58 | + --> $DIR/redundant_locals.rs:53:9 |
59 | 59 | | |
60 | 60 | LL | let x = x; |
61 | 61 | | ^ |
62 | 62 |
|
63 | 63 | error: redundant redefinition of a binding `x` |
64 | | - --> $DIR/redundant_locals.rs:54:5 |
| 64 | + --> $DIR/redundant_locals.rs:55:5 |
65 | 65 | | |
66 | 66 | LL | let x = x; |
67 | 67 | | ^^^^^^^^^^ |
68 | 68 | | |
69 | 69 | help: `x` is initially defined here |
70 | | - --> $DIR/redundant_locals.rs:53:9 |
| 70 | + --> $DIR/redundant_locals.rs:54:9 |
71 | 71 | | |
72 | 72 | LL | let x = x; |
73 | 73 | | ^ |
74 | 74 |
|
75 | 75 | error: redundant redefinition of a binding `x` |
76 | | - --> $DIR/redundant_locals.rs:55:5 |
| 76 | + --> $DIR/redundant_locals.rs:56:5 |
77 | 77 | | |
78 | 78 | LL | let x = x; |
79 | 79 | | ^^^^^^^^^^ |
80 | 80 | | |
81 | 81 | help: `x` is initially defined here |
82 | | - --> $DIR/redundant_locals.rs:54:9 |
| 82 | + --> $DIR/redundant_locals.rs:55:9 |
83 | 83 | | |
84 | 84 | LL | let x = x; |
85 | 85 | | ^ |
86 | 86 |
|
87 | 87 | error: redundant redefinition of a binding `a` |
88 | | - --> $DIR/redundant_locals.rs:61:5 |
| 88 | + --> $DIR/redundant_locals.rs:62:5 |
89 | 89 | | |
90 | 90 | LL | let a = a; |
91 | 91 | | ^^^^^^^^^^ |
92 | 92 | | |
93 | 93 | help: `a` is initially defined here |
94 | | - --> $DIR/redundant_locals.rs:59:9 |
| 94 | + --> $DIR/redundant_locals.rs:60:9 |
95 | 95 | | |
96 | 96 | LL | let a = 1; |
97 | 97 | | ^ |
98 | 98 |
|
99 | 99 | error: redundant redefinition of a binding `b` |
100 | | - --> $DIR/redundant_locals.rs:62:5 |
| 100 | + --> $DIR/redundant_locals.rs:63:5 |
101 | 101 | | |
102 | 102 | LL | let b = b; |
103 | 103 | | ^^^^^^^^^^ |
104 | 104 | | |
105 | 105 | help: `b` is initially defined here |
106 | | - --> $DIR/redundant_locals.rs:60:9 |
| 106 | + --> $DIR/redundant_locals.rs:61:9 |
107 | 107 | | |
108 | 108 | LL | let b = 2; |
109 | 109 | | ^ |
110 | 110 |
|
111 | 111 | error: redundant redefinition of a binding `x` |
112 | | - --> $DIR/redundant_locals.rs:68:9 |
| 112 | + --> $DIR/redundant_locals.rs:69:9 |
113 | 113 | | |
114 | 114 | LL | let x = x; |
115 | 115 | | ^^^^^^^^^^ |
116 | 116 | | |
117 | 117 | help: `x` is initially defined here |
118 | | - --> $DIR/redundant_locals.rs:67:13 |
| 118 | + --> $DIR/redundant_locals.rs:68:13 |
119 | 119 | | |
120 | 120 | LL | let x = 1; |
121 | 121 | | ^ |
122 | 122 |
|
123 | 123 | error: redundant redefinition of a binding `x` |
124 | | - --> $DIR/redundant_locals.rs:75:9 |
| 124 | + --> $DIR/redundant_locals.rs:76:9 |
125 | 125 | | |
126 | 126 | LL | let x = x; |
127 | 127 | | ^^^^^^^^^^ |
128 | 128 | | |
129 | 129 | help: `x` is initially defined here |
130 | | - --> $DIR/redundant_locals.rs:74:13 |
| 130 | + --> $DIR/redundant_locals.rs:75:13 |
131 | 131 | | |
132 | 132 | LL | let x = 1; |
133 | 133 | | ^ |
134 | 134 |
|
135 | 135 | error: redundant redefinition of a binding `x` |
136 | | - --> $DIR/redundant_locals.rs:78:9 |
| 136 | + --> $DIR/redundant_locals.rs:79:9 |
137 | 137 | | |
138 | 138 | LL | let x = x; |
139 | 139 | | ^^^^^^^^^^ |
140 | 140 | | |
141 | 141 | help: `x` is initially defined here |
142 | | - --> $DIR/redundant_locals.rs:77:6 |
| 142 | + --> $DIR/redundant_locals.rs:78:6 |
143 | 143 | | |
144 | 144 | LL | |x: i32| { |
145 | 145 | | ^ |
146 | 146 |
|
147 | 147 | error: redundant redefinition of a binding `x` |
148 | | - --> $DIR/redundant_locals.rs:97:9 |
| 148 | + --> $DIR/redundant_locals.rs:98:9 |
149 | 149 | | |
150 | 150 | LL | let x = x; |
151 | 151 | | ^^^^^^^^^^ |
152 | 152 | | |
153 | 153 | help: `x` is initially defined here |
154 | | - --> $DIR/redundant_locals.rs:94:9 |
| 154 | + --> $DIR/redundant_locals.rs:95:9 |
155 | 155 | | |
156 | 156 | LL | let x = 1; |
157 | 157 | | ^ |
158 | 158 |
|
159 | 159 | error: redundant redefinition of a binding `a` |
160 | | - --> $DIR/redundant_locals.rs:152:5 |
| 160 | + --> $DIR/redundant_locals.rs:153:5 |
161 | 161 | | |
162 | 162 | LL | let a = a; |
163 | 163 | | ^^^^^^^^^^ |
164 | 164 | | |
165 | 165 | help: `a` is initially defined here |
166 | | - --> $DIR/redundant_locals.rs:150:9 |
| 166 | + --> $DIR/redundant_locals.rs:151:9 |
167 | 167 | | |
168 | 168 | LL | let a = WithoutDrop(1); |
169 | 169 | | ^ |
|
0 commit comments