Skip to content

Commit af3d793

Browse files
committed
Add more tests
1 parent 691bc3b commit af3d793

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

tests/source/structs.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,9 @@ struct Loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
260260
struct Loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong { x: i32 }
261261

262262
// structs with visibility, do not duplicate visibility (#2110).
263+
pub(in self) struct Foo{}
264+
pub(super) struct Foo{}
265+
pub(crate) struct Foo{}
263266
pub(in self) struct Foo();
264267
pub(super) struct Foo();
265268
pub(crate) struct Foo();

tests/target/structs.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,9 @@ struct Loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
302302
}
303303

304304
// structs with visibility, do not duplicate visibility (#2110).
305-
pub(in self) struct Foo();
305+
pub(self) struct Foo {}
306+
pub(super) struct Foo {}
307+
pub(crate) struct Foo {}
308+
pub(self) struct Foo();
306309
pub(super) struct Foo();
307310
pub(crate) struct Foo();

0 commit comments

Comments
 (0)