Add more tests

This commit is contained in:
topecongiro 2017-11-03 23:38:32 +09:00
parent 691bc3bbd7
commit af3d793e30
2 changed files with 7 additions and 1 deletions

View File

@ -260,6 +260,9 @@ struct Loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
struct Loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong { x: i32 }
// structs with visibility, do not duplicate visibility (#2110).
pub(in self) struct Foo{}
pub(super) struct Foo{}
pub(crate) struct Foo{}
pub(in self) struct Foo();
pub(super) struct Foo();
pub(crate) struct Foo();

View File

@ -302,6 +302,9 @@ struct Loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
}
// structs with visibility, do not duplicate visibility (#2110).
pub(in self) struct Foo();
pub(self) struct Foo {}
pub(super) struct Foo {}
pub(crate) struct Foo {}
pub(self) struct Foo();
pub(super) struct Foo();
pub(crate) struct Foo();