]>
Commit | Line | Data |
---|---|---|
f20569fa | 1 | error: redundant field names in struct initialization |
781aab86 | 2 | --> $DIR/redundant_field_names.rs:33:9 |
f20569fa XL |
3 | | |
4 | LL | gender: gender, | |
5 | | ^^^^^^^^^^^^^^ help: replace it with: `gender` | |
6 | | | |
7 | = note: `-D clippy::redundant-field-names` implied by `-D warnings` | |
781aab86 | 8 | = help: to override `-D warnings` add `#[allow(clippy::redundant_field_names)]` |
f20569fa XL |
9 | |
10 | error: redundant field names in struct initialization | |
781aab86 | 11 | --> $DIR/redundant_field_names.rs:34:9 |
f20569fa XL |
12 | | |
13 | LL | age: age, | |
14 | | ^^^^^^^^ help: replace it with: `age` | |
15 | ||
16 | error: redundant field names in struct initialization | |
781aab86 | 17 | --> $DIR/redundant_field_names.rs:55:25 |
f20569fa XL |
18 | | |
19 | LL | let _ = RangeFrom { start: start }; | |
20 | | ^^^^^^^^^^^^ help: replace it with: `start` | |
21 | ||
22 | error: redundant field names in struct initialization | |
781aab86 | 23 | --> $DIR/redundant_field_names.rs:56:23 |
f20569fa XL |
24 | | |
25 | LL | let _ = RangeTo { end: end }; | |
26 | | ^^^^^^^^ help: replace it with: `end` | |
27 | ||
28 | error: redundant field names in struct initialization | |
781aab86 | 29 | --> $DIR/redundant_field_names.rs:57:21 |
f20569fa XL |
30 | | |
31 | LL | let _ = Range { start: start, end: end }; | |
32 | | ^^^^^^^^^^^^ help: replace it with: `start` | |
33 | ||
34 | error: redundant field names in struct initialization | |
781aab86 | 35 | --> $DIR/redundant_field_names.rs:57:35 |
f20569fa XL |
36 | | |
37 | LL | let _ = Range { start: start, end: end }; | |
38 | | ^^^^^^^^ help: replace it with: `end` | |
39 | ||
40 | error: redundant field names in struct initialization | |
781aab86 | 41 | --> $DIR/redundant_field_names.rs:59:32 |
f20569fa XL |
42 | | |
43 | LL | let _ = RangeToInclusive { end: end }; | |
44 | | ^^^^^^^^ help: replace it with: `end` | |
45 | ||
2b03887a | 46 | error: redundant field names in struct initialization |
781aab86 | 47 | --> $DIR/redundant_field_names.rs:88:25 |
2b03887a FG |
48 | | |
49 | LL | let _ = RangeFrom { start: start }; | |
50 | | ^^^^^^^^^^^^ help: replace it with: `start` | |
51 | ||
52 | error: aborting due to 8 previous errors | |
f20569fa | 53 |