Add test case for zero-sized types

This commit is contained in:
Camelid 2021-04-27 10:38:12 -07:00
parent 61a8479472
commit 879a914eea

View File

@ -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);