mirror of https://github.com/rust-lang/rust
14 lines
334 B
Rust
14 lines
334 B
Rust
//@ 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),
|
|
}
|