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