1
Fork 0
rust/tests/ui/span/pub-struct-field.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
574 B
Text
Raw Normal View History

2016-08-08 21:35:15 +09:00
error[E0124]: field `bar` is already declared
2018-12-25 08:56:47 -07:00
--> $DIR/pub-struct-field.rs:6: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
2019-03-09 15:03:44 +03:00
LL | pub bar: u8,
2016-08-08 21:35:15 +09:00
| ^^^^^^^^^^^ field already declared
error[E0124]: field `bar` is already declared
2018-12-25 08:56:47 -07:00
--> $DIR/pub-struct-field.rs:7: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
2019-03-09 15:03:44 +03:00
LL | pub bar: u8,
LL | pub(crate) bar: u8,
2016-08-08 21:35:15 +09:00
| ^^^^^^^^^^^^^^^^^^ field already declared
error: aborting due to 2 previous errors
2016-08-08 21:35:15 +09:00
2018-03-03 15:59:40 +01:00
For more information about this error, try `rustc --explain E0124`.