@@ -45,7 +45,7 @@ error: all fields have the same prefix: `some_data`
45
45
LL | / struct DoublePrefix {
46
46
LL | |
47
47
LL | | some_data_a: bool,
48
- LL | | some_data_b: bool ,
48
+ LL | | some_data_b: i8 ,
49
49
LL | | some_data_c: bool,
50
50
LL | | }
51
51
| |_^
@@ -58,7 +58,7 @@ error: all fields have the same postfix: `some_data`
58
58
LL | / struct DoublePostfix {
59
59
LL | |
60
60
LL | | a_some_data: bool,
61
- LL | | b_some_data: bool ,
61
+ LL | | b_some_data: i8 ,
62
62
LL | | c_some_data: bool,
63
63
LL | | }
64
64
| |_^
@@ -71,7 +71,7 @@ error: all fields have the same postfix: `someData`
71
71
LL | / struct NotSnakeCase {
72
72
LL | |
73
73
LL | | a_someData: bool,
74
- LL | | b_someData: bool ,
74
+ LL | | b_someData: i8 ,
75
75
LL | | c_someData: bool,
76
76
LL | | }
77
77
| |_^
@@ -84,7 +84,7 @@ error: all fields have the same prefix: `someData`
84
84
LL | / struct NotSnakeCase2 {
85
85
LL | |
86
86
LL | | someData_c: bool,
87
- LL | | someData_b: bool ,
87
+ LL | | someData_b: i8 ,
88
88
LL | | someData_a_b: bool,
89
89
LL | | }
90
90
| |_^
@@ -261,5 +261,23 @@ LL | mk_struct_full_def!(PrefixData, some_data, some_meta, some_other);
261
261
= help: remove the prefixes
262
262
= note: this error originates in the macro `mk_struct_full_def` (in Nightly builds, run with -Z macro-backtrace for more info)
263
263
264
- error: aborting due to 21 previous errors
264
+ error: field name starts with the struct's name
265
+ --> $DIR/struct_fields.rs:339:5
266
+ |
267
+ LL | use_foo: bool,
268
+ | ^^^^^^^^^^^^^
269
+
270
+ error: field name starts with the struct's name
271
+ --> $DIR/struct_fields.rs:341:5
272
+ |
273
+ LL | use_bar: bool,
274
+ | ^^^^^^^^^^^^^
275
+
276
+ error: field name starts with the struct's name
277
+ --> $DIR/struct_fields.rs:342:5
278
+ |
279
+ LL | use_baz: bool,
280
+ | ^^^^^^^^^^^^^
281
+
282
+ error: aborting due to 24 previous errors
265
283
0 commit comments