]> git.lizzy.rs Git - rust.git/blob - tests/ui/redundant_field_names.stderr
Make `redundant_field_name` not care range expressions
[rust.git] / tests / ui / redundant_field_names.stderr
1 error: redundant field names in struct initialization
2   --> $DIR/redundant_field_names.rs:26:9
3    |
4 26 |         gender: gender,
5    |         ^^^^^^^^^^^^^^ help: replace it with: `gender`
6    |
7    = note: `-D redundant-field-names` implied by `-D warnings`
8
9 error: redundant field names in struct initialization
10   --> $DIR/redundant_field_names.rs:27:9
11    |
12 27 |         age: age,
13    |         ^^^^^^^^ help: replace it with: `age`
14
15 error: redundant field names in struct initialization
16   --> $DIR/redundant_field_names.rs:45:25
17    |
18 45 |     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:46:23
23    |
24 46 |     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:47:21
29    |
30 47 |     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:47:35
35    |
36 47 |     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:48:30
41    |
42 48 |     let _ = RangeInclusive { start: start, end: end };
43    |                              ^^^^^^^^^^^^ help: replace it with: `start`
44
45 error: redundant field names in struct initialization
46   --> $DIR/redundant_field_names.rs:48:44
47    |
48 48 |     let _ = RangeInclusive { start: start, end: end };
49    |                                            ^^^^^^^^ help: replace it with: `end`
50
51 error: redundant field names in struct initialization
52   --> $DIR/redundant_field_names.rs:49:32
53    |
54 49 |     let _ = RangeToInclusive { end: end };
55    |                                ^^^^^^^^ help: replace it with: `end`
56
57 error: aborting due to 9 previous errors
58