summaryrefslogtreecommitdiffstats
path: root/src/test/ui/repr/auxiliary/repr-transparent-non-exhaustive.rs
blob: 4bf6b54fe0787bea76ab402796cbaefa388eed68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#![crate_type = "lib"]

pub struct Private { _priv: () }

#[non_exhaustive]
pub struct NonExhaustive {}

#[non_exhaustive]
pub enum NonExhaustiveEnum {}

pub enum NonExhaustiveVariant {
    #[non_exhaustive]
    A,
}

pub struct ExternalIndirection<T> {
    pub x: T,
}