]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/derive-multiple-with-packed.rs
Merge commit '598f0909568a51de8a2d1148f55a644fd8dffad0' into sync_cg_clif-2023-01-24
[rust.git] / tests / ui / proc-macro / derive-multiple-with-packed.rs
1 // check-pass
2
3 #[derive(Clone, Copy)]
4 #[derive(Debug)] // OK, even if `Copy` is in the different `#[derive]`
5 #[derive(PartialEq)] // OK too
6 #[repr(packed)]
7 struct CacheRecordHeader {
8     field: u64,
9 }
10
11 fn main() {}