blob: 9159038924719f288091a30166a4a362b2a7fc07 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// compile-flags: -Z print-type-sizes --crate-type=lib
// build-pass
// This file illustrates that when multiple structural types occur in
// a function, every one of them is included in the output.
pub struct SevenBytes([u8; 7]);
pub struct FiftyBytes([u8; 50]);
pub enum Enum {
Small(SevenBytes),
Large(FiftyBytes),
}
|