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