summaryrefslogtreecommitdiffstats
path: root/tests/ui/proc-macro/derive-multiple-with-packed.rs
blob: 23578aa0e9fb8b2932e33e9901b634a7315e1688 (plain)
1
2
3
4
5
6
7
8
9
10
11
// check-pass

#[derive(Clone, Copy)]
#[derive(Debug)] // OK, even if `Copy` is in the different `#[derive]`
#[derive(PartialEq)] // OK too
#[repr(packed)]
struct CacheRecordHeader {
    field: u64,
}

fn main() {}