diff options
| author | Deadbeef <ent3rm4n@gmail.com> | 2021-07-10 21:35:40 +0800 |
|---|---|---|
| committer | Deadbeef <ent3rm4n@gmail.com> | 2021-08-31 05:25:36 +0000 |
| commit | 8096910b54920f4c3334de555ee9dd265ed6f49d (patch) | |
| tree | 862bd381568f3f65c423772bdf32bd1e5fba855c /src/test | |
| parent | c349b79029770e39963fadf5021cfa6a6cfe5472 (diff) | |
| download | rust-8096910b54920f4c3334de555ee9dd265ed6f49d.tar.gz rust-8096910b54920f4c3334de555ee9dd265ed6f49d.zip | |
Report variant size without the discriminant
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/rustdoc/type-layout.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/rustdoc/type-layout.rs b/src/test/rustdoc/type-layout.rs index f398dd776d9..bc1b65c46e2 100644 --- a/src/test/rustdoc/type-layout.rs +++ b/src/test/rustdoc/type-layout.rs @@ -53,7 +53,8 @@ pub struct Unsized([u8]); // @!has type_layout/trait.MyTrait.html 'Size: ' pub trait MyTrait {} -// @has type_layout/enum.Variants.html '1 byte' +// @has type_layout/enum.Variants.html '<code>A</code>: 0 bytes' +// @has - '<code>B</code>: 1 byte' pub enum Variants { A, B(u8), |
