2016-08-08 07:35:15 -05:00
|
|
|
error[E0124]: field `bar` is already declared
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/pub-struct-field.rs:6:5
|
2016-08-08 07:35:15 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | bar: u8,
|
2016-08-08 07:35:15 -05:00
|
|
|
| ------- `bar` first declared here
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | pub bar: u8, //~ ERROR is already declared
|
2016-08-08 07:35:15 -05:00
|
|
|
| ^^^^^^^^^^^ field already declared
|
|
|
|
|
|
|
|
error[E0124]: field `bar` is already declared
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/pub-struct-field.rs:7:5
|
2016-08-08 07:35:15 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | bar: u8,
|
2016-08-08 07:35:15 -05:00
|
|
|
| ------- `bar` first declared here
|
2018-02-24 17:01:39 -06:00
|
|
|
LL | pub bar: u8, //~ ERROR is already declared
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | pub(crate) bar: u8, //~ ERROR is already declared
|
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
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0124`.
|