@@ -12,6 +12,36 @@ error: redundant field names in struct initialization
12
12
35 | age: age,
13
13
| ^^^^^^^^ help: replace it with: `age`
14
14
15
+ error: redundant field names in struct initialization
16
+ --> $DIR/redundant_field_names.rs:45:13
17
+ |
18
+ 45 | let _ = start..;
19
+ | ^^^^^ help: replace it with: `start`
20
+
21
+ error: redundant field names in struct initialization
22
+ --> $DIR/redundant_field_names.rs:46:15
23
+ |
24
+ 46 | let _ = ..end;
25
+ | ^^^ help: replace it with: `end`
26
+
27
+ error: redundant field names in struct initialization
28
+ --> $DIR/redundant_field_names.rs:47:13
29
+ |
30
+ 47 | let _ = start..end;
31
+ | ^^^^^ help: replace it with: `start`
32
+
33
+ error: redundant field names in struct initialization
34
+ --> $DIR/redundant_field_names.rs:47:20
35
+ |
36
+ 47 | let _ = start..end;
37
+ | ^^^ help: replace it with: `end`
38
+
39
+ error: redundant field names in struct initialization
40
+ --> $DIR/redundant_field_names.rs:49:16
41
+ |
42
+ 49 | let _ = ..=end;
43
+ | ^^^ help: replace it with: `end`
44
+
15
45
error: redundant field names in struct initialization
16
46
--> $DIR/redundant_field_names.rs:53:25
17
47
|
@@ -42,5 +72,5 @@ error: redundant field names in struct initialization
42
72
57 | let _ = RangeToInclusive { end: end };
43
73
| ^^^^^^^^ help: replace it with: `end`
44
74
45
- error: aborting due to 7 previous errors
75
+ error: aborting due to 12 previous errors
46
76
0 commit comments