about summary refs log tree commit diff
path: root/tests/rustdoc-json/attrs/repr_c_int_enum.rs
blob: e90bcf2b5c61816f3bfef615e3d2ce5f10485921 (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ count "$.index[?(@.name=='Foo')].attrs" 1
//@ is "$.index[?(@.name=='Foo')].attrs[*].repr.kind" '"c"'
//@ is "$.index[?(@.name=='Foo')].attrs[*].repr.int" '"u8"'
//@ is "$.index[?(@.name=='Foo')].attrs[*].repr.packed" null
//@ is "$.index[?(@.name=='Foo')].attrs[*].repr.align" 16
#[repr(C, u8)]
#[repr(align(16))]
pub enum Foo {
    A(bool) = b'A',
    B(char) = b'C',
}