summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/inline_cross/auxiliary/repr.rs
blob: 4a6648a643980e90d48c8f92cf3eee024f134bb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#![feature(repr_simd)]

#[repr(C, align(8))]
pub struct ReprC {
    field: u8,
}
#[repr(simd, packed(2))]
pub struct ReprSimd {
    field: u8,
}
#[repr(transparent)]
pub struct ReprTransparent {
    field: u8,
}
#[repr(isize)]
pub enum ReprIsize {
    Bla,
}
#[repr(u8)]
pub enum ReprU8 {
    Bla,
}