]> git.lizzy.rs Git - rust.git/blob - tests/ui/redundant_field_names.stderr
Merge commit '7ea7cd165ad6705603852771bf82cc2fd6560db5' into clippyup2
[rust.git] / tests / ui / redundant_field_names.stderr
1 error: redundant field names in struct initialization
2   --> $DIR/redundant_field_names.rs:34: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
9 error: redundant field names in struct initialization
10   --> $DIR/redundant_field_names.rs:35:9
11    |
12 LL |         age: age,
13    |         ^^^^^^^^ help: replace it with: `age`
14
15 error: redundant field names in struct initialization
16   --> $DIR/redundant_field_names.rs:56:25
17    |
18 LL |     let _ = RangeFrom { start: start };
19    |                         ^^^^^^^^^^^^ help: replace it with: `start`
20
21 error: redundant field names in struct initialization
22   --> $DIR/redundant_field_names.rs:57:23
23    |
24 LL |     let _ = RangeTo { end: end };
25    |                       ^^^^^^^^ help: replace it with: `end`
26
27 error: redundant field names in struct initialization
28   --> $DIR/redundant_field_names.rs:58:21
29    |
30 LL |     let _ = Range { start: start, end: end };
31    |                     ^^^^^^^^^^^^ help: replace it with: `start`
32
33 error: redundant field names in struct initialization
34   --> $DIR/redundant_field_names.rs:58:35
35    |
36 LL |     let _ = Range { start: start, end: end };
37    |                                   ^^^^^^^^ help: replace it with: `end`
38
39 error: redundant field names in struct initialization
40   --> $DIR/redundant_field_names.rs:60:32
41    |
42 LL |     let _ = RangeToInclusive { end: end };
43    |                                ^^^^^^^^ help: replace it with: `end`
44
45 error: aborting due to 7 previous errors
46