rust/tests/ui/repr/auxiliary/repr-transparent-non-exhaustive.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
270 B
Rust
Raw Normal View History

#![crate_type = "lib"]
pub struct Private { _priv: () }
#[non_exhaustive]
pub struct NonExhaustive {}
2022-07-10 08:31:58 -05:00
#[non_exhaustive]
pub enum NonExhaustiveEnum {}
pub enum NonExhaustiveVariant {
#[non_exhaustive]
A,
}
pub struct ExternalIndirection<T> {
pub x: T,
}