@@ -45,7 +45,7 @@ error: all fields have the same prefix: `some_data`
4545LL | / struct DoublePrefix {
4646LL | |
4747LL | | some_data_a: bool,
48- LL | | some_data_b: bool ,
48+ LL | | some_data_b: i8 ,
4949LL | | some_data_c: bool,
5050LL | | }
5151 | |_^
@@ -58,7 +58,7 @@ error: all fields have the same postfix: `some_data`
5858LL | / struct DoublePostfix {
5959LL | |
6060LL | | a_some_data: bool,
61- LL | | b_some_data: bool ,
61+ LL | | b_some_data: i8 ,
6262LL | | c_some_data: bool,
6363LL | | }
6464 | |_^
@@ -71,7 +71,7 @@ error: all fields have the same postfix: `someData`
7171LL | / struct NotSnakeCase {
7272LL | |
7373LL | | a_someData: bool,
74- LL | | b_someData: bool ,
74+ LL | | b_someData: i8 ,
7575LL | | c_someData: bool,
7676LL | | }
7777 | |_^
@@ -84,7 +84,7 @@ error: all fields have the same prefix: `someData`
8484LL | / struct NotSnakeCase2 {
8585LL | |
8686LL | | someData_c: bool,
87- LL | | someData_b: bool ,
87+ LL | | someData_b: i8 ,
8888LL | | someData_a_b: bool,
8989LL | | }
9090 | |_^
@@ -261,5 +261,23 @@ LL | mk_struct_full_def!(PrefixData, some_data, some_meta, some_other);
261261 = help: remove the prefixes
262262 = note: this error originates in the macro `mk_struct_full_def` (in Nightly builds, run with -Z macro-backtrace for more info)
263263
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
265283
0 commit comments