]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/pub-struct-field.stderr
Rollup merge of #87922 - Manishearth:c-enum-target-spec, r=nagisa,eddyb
[rust.git] / src / test / ui / span / pub-struct-field.stderr
1 error[E0124]: field `bar` is already declared
2   --> $DIR/pub-struct-field.rs:6:5
3    |
4 LL |     bar: u8,
5    |     ------- `bar` first declared here
6 LL |     pub bar: u8,
7    |     ^^^^^^^^^^^ field already declared
8
9 error[E0124]: field `bar` is already declared
10   --> $DIR/pub-struct-field.rs:7:5
11    |
12 LL |     bar: u8,
13    |     ------- `bar` first declared here
14 LL |     pub bar: u8,
15 LL |     pub(crate) bar: u8,
16    |     ^^^^^^^^^^^^^^^^^^ field already declared
17
18 error: aborting due to 2 previous errors
19
20 For more information about this error, try `rustc --explain E0124`.