1 error[E0124]: field `bar` is already declared
2 --> $DIR/pub-struct-field.rs:6:5
5 | ------- `bar` first declared here
7 | ^^^^^^^^^^^ field already declared
9 error[E0124]: field `bar` is already declared
10 --> $DIR/pub-struct-field.rs:7:5
13 | ------- `bar` first declared here
15 LL | pub(crate) bar: u8,
16 | ^^^^^^^^^^^^^^^^^^ field already declared
18 error: aborting due to 2 previous errors
20 For more information about this error, try `rustc --explain E0124`.