2016-08-08 07:35:15 -05:00
|
|
|
error[E0124]: field `bar` is already declared
|
2017-03-15 16:24:02 -05:00
|
|
|
--> $DIR/pub-struct-field.rs:16:5
|
2016-08-08 07:35:15 -05:00
|
|
|
|
|
2017-03-15 16:24:02 -05:00
|
|
|
15 | bar: u8,
|
2016-08-08 07:35:15 -05:00
|
|
|
| ------- `bar` first declared here
|
2017-03-15 16:24:02 -05:00
|
|
|
16 | pub bar: u8,
|
2016-08-08 07:35:15 -05:00
|
|
|
| ^^^^^^^^^^^ field already declared
|
|
|
|
|
|
|
|
error[E0124]: field `bar` is already declared
|
2017-03-15 16:24:02 -05:00
|
|
|
--> $DIR/pub-struct-field.rs:17:5
|
2016-08-08 07:35:15 -05:00
|
|
|
|
|
2017-03-15 16:24:02 -05:00
|
|
|
15 | bar: u8,
|
2016-08-08 07:35:15 -05:00
|
|
|
| ------- `bar` first declared here
|
2017-03-15 16:24:02 -05:00
|
|
|
16 | pub bar: u8,
|
|
|
|
17 | pub(crate) bar: u8,
|
2016-08-08 07:35:15 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^ field already declared
|
|
|
|
|
2017-07-02 05:49:30 -05:00
|
|
|
error: aborting due to 2 previous errors
|
2016-08-08 07:35:15 -05:00
|
|
|
|