Report Layout of enum variants

Followup of #83501, Fixes #86253.
This commit is contained in:
Deadbeef 2021-06-14 01:49:37 +08:00
parent ac50a53359
commit aff4cd5ce7
No known key found for this signature in database
GPG key ID: 027DF9338862ADDD
2 changed files with 41 additions and 1 deletions

View file

@ -52,3 +52,9 @@ pub struct Unsized([u8]);
// @!has type_layout/trait.MyTrait.html 'Size: '
pub trait MyTrait {}
// @has type_layout/enum.Variants.html '1 byte'
pub enum Variants {
A,
B(u8),
}