Skip to content

Commit

Permalink
Add test case for zero-sized types
Browse files Browse the repository at this point in the history
  • Loading branch information
camelid committed May 11, 2021
1 parent 61a8479 commit 879a914
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/test/rustdoc/type-layout.rs
Expand Up @@ -31,6 +31,10 @@ pub struct X(usize);
// @!has - ' bytes'
pub struct Y(u8);

// @has type_layout/struct.Z.html 'Size: '
// @has - '0 bytes'
pub struct Z;

// @!has type_layout/struct.Generic.html 'Size: '
pub struct Generic<T>(T);

Expand Down

0 comments on commit 879a914

Please sign in to comment.