about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorDeadbeef <ent3rm4n@gmail.com>2021-07-10 21:35:40 +0800
committerDeadbeef <ent3rm4n@gmail.com>2021-08-31 05:25:36 +0000
commit8096910b54920f4c3334de555ee9dd265ed6f49d (patch)
tree862bd381568f3f65c423772bdf32bd1e5fba855c /src/test
parentc349b79029770e39963fadf5021cfa6a6cfe5472 (diff)
downloadrust-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.rs3
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),