2016-08-08 07:35:15 -05:00
|
|
|
// Regression test for issue #26083 and #35435
|
|
|
|
// Test that span for public struct fields start at `pub`
|
2015-06-07 18:29:09 -05:00
|
|
|
|
2016-08-08 07:35:15 -05:00
|
|
|
struct Foo {
|
2015-06-07 18:29:09 -05:00
|
|
|
bar: u8,
|
2017-11-20 06:13:27 -06:00
|
|
|
pub bar: u8, //~ ERROR is already declared
|
|
|
|
pub(crate) bar: u8, //~ ERROR is already declared
|
2015-06-07 18:29:09 -05:00
|
|
|
}
|
|
|
|
|
2016-08-08 07:35:15 -05:00
|
|
|
fn main() {}
|