Skip to content

Commit 879a914

Browse files
committed
Add test case for zero-sized types
1 parent 61a8479 commit 879a914

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test/rustdoc/type-layout.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ pub struct X(usize);
3131
// @!has - ' bytes'
3232
pub struct Y(u8);
3333

34+
// @has type_layout/struct.Z.html 'Size: '
35+
// @has - '0 bytes'
36+
pub struct Z;
37+
3438
// @!has type_layout/struct.Generic.html 'Size: '
3539
pub struct Generic<T>(T);
3640

0 commit comments

Comments
 (0)