diff options
| author | Camelid <camelidcamel@gmail.com> | 2021-04-27 10:38:12 -0700 |
|---|---|---|
| committer | Camelid <camelidcamel@gmail.com> | 2021-05-11 09:55:31 -0700 |
| commit | 879a914eea7d8d10bf865822e76a165938e41544 (patch) | |
| tree | 40f736d9411db0033035f2b9054a4b3692acbea9 | |
| parent | 61a84794726c94dd297a7b0fd0321a1d4a6d08dd (diff) | |
| download | rust-879a914eea7d8d10bf865822e76a165938e41544.tar.gz rust-879a914eea7d8d10bf865822e76a165938e41544.zip | |
Add test case for zero-sized types
| -rw-r--r-- | src/test/rustdoc/type-layout.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/rustdoc/type-layout.rs b/src/test/rustdoc/type-layout.rs index 72e28300405..cb6e354f7df 100644 --- a/src/test/rustdoc/type-layout.rs +++ b/src/test/rustdoc/type-layout.rs @@ -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); |
