@@ -65,8 +65,34 @@ LL | | }
65
65
|
66
66
= help: remove the postfixes
67
67
68
+ error: all fields have the same postfix: `someData`
69
+ --> $DIR/struct_fields.rs:49:1
70
+ |
71
+ LL | / struct NotSnakeCase {
72
+ LL | |
73
+ LL | | a_someData: bool,
74
+ LL | | b_someData: bool,
75
+ LL | | c_someData: bool,
76
+ LL | | }
77
+ | |_^
78
+ |
79
+ = help: remove the postfixes
80
+
81
+ error: all fields have the same prefix: `someData`
82
+ --> $DIR/struct_fields.rs:56:1
83
+ |
84
+ LL | / struct NotSnakeCase2 {
85
+ LL | |
86
+ LL | | someData_c: bool,
87
+ LL | | someData_b: bool,
88
+ LL | | someData_a_b: bool,
89
+ LL | | }
90
+ | |_^
91
+ |
92
+ = help: remove the prefixes
93
+
68
94
error: all fields have the same prefix: `prefix`
69
- --> $DIR/struct_fields.rs:54 :1
95
+ --> $DIR/struct_fields.rs:69 :1
70
96
|
71
97
LL | / struct NonCaps {
72
98
LL | |
@@ -79,7 +105,7 @@ LL | | }
79
105
= help: remove the prefixes
80
106
81
107
error: all fields have the same prefix: `_type`
82
- --> $DIR/struct_fields.rs:104 :5
108
+ --> $DIR/struct_fields.rs:119 :5
83
109
|
84
110
LL | / struct DoLint {
85
111
LL | |
@@ -93,7 +119,7 @@ LL | | }
93
119
= help: remove the prefixes
94
120
95
121
error: all fields have the same postfix: `type`
96
- --> $DIR/struct_fields.rs:112 :5
122
+ --> $DIR/struct_fields.rs:127 :5
97
123
|
98
124
LL | / struct DoLintToo {
99
125
LL | |
@@ -105,5 +131,5 @@ LL | | }
105
131
|
106
132
= help: remove the postfixes
107
133
108
- error: aborting due to 9 previous errors
134
+ error: aborting due to 11 previous errors
109
135
0 commit comments