diff options
Diffstat (limited to 'tests/rustdoc/inline_cross/auxiliary')
-rw-r--r-- | tests/rustdoc/inline_cross/auxiliary/repr.rs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/rustdoc/inline_cross/auxiliary/repr.rs b/tests/rustdoc/inline_cross/auxiliary/repr.rs new file mode 100644 index 000000000..4a6648a64 --- /dev/null +++ b/tests/rustdoc/inline_cross/auxiliary/repr.rs @@ -0,0 +1,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, +} |