2016-08-08 21:35:15 +09:00
|
|
|
error[E0124]: field `bar` is already declared
|
2017-03-15 14:24:02 -07:00
|
|
|
--> $DIR/pub-struct-field.rs:16:5
|
2016-08-08 21:35:15 +09:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | bar: u8,
|
2016-08-08 21:35:15 +09:00
|
|
|
| ------- `bar` first declared here
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | pub bar: u8, //~ ERROR is already declared
|
2016-08-08 21:35:15 +09:00
|
|
|
| ^^^^^^^^^^^ field already declared
|
|
|
|
|
|
|
|
error[E0124]: field `bar` is already declared
|
2017-03-15 14:24:02 -07:00
|
|
|
--> $DIR/pub-struct-field.rs:17:5
|
2016-08-08 21:35:15 +09:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | bar: u8,
|
2016-08-08 21:35:15 +09:00
|
|
|
| ------- `bar` first declared here
|
2018-02-25 02:01:39 +03:00
|
|
|
LL | pub bar: u8, //~ ERROR is already declared
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | pub(crate) bar: u8, //~ ERROR is already declared
|
2016-08-08 21:35:15 +09:00
|
|
|
| ^^^^^^^^^^^^^^^^^^ field already declared
|
|
|
|
|
2017-07-02 13:49:30 +03:00
|
|
|
error: aborting due to 2 previous errors
|
2016-08-08 21:35:15 +09:00
|
|
|
|
2018-02-19 21:40:25 +01:00
|
|
|
If you want more information on this error, try using "rustc --explain E0124"
|