]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/redundant_field_names.stderr
8b82e062b93a63325c94f5e4c79b5f9592f63f5c
[rustc.git] / src / tools / clippy / tests / ui / redundant_field_names.stderr
1 error: redundant field names in struct initialization
2 --> $DIR/redundant_field_names.rs:36: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:37: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:58: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:59: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:60: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:60: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:62:32
41 |
42 LL | let _ = RangeToInclusive { end: end };
43 | ^^^^^^^^ help: replace it with: `end`
44
45 error: redundant field names in struct initialization
46 --> $DIR/redundant_field_names.rs:86:25
47 |
48 LL | let _ = RangeFrom { start: start };
49 | ^^^^^^^^^^^^ help: replace it with: `start`
50
51 error: aborting due to 8 previous errors
52