//@ check-pass #![feature(sync_unsafe_cell)] #![allow(unused)] #![deny(repr_transparent_external_private_fields)] // https://github.com/rust-lang/rust/issues/129470 struct ZST; #[repr(transparent)] struct TransparentWithManuallyDropZST { value: i32, md: std::mem::ManuallyDrop, mu: std::mem::MaybeUninit, p: std::pin::Pin, pd: std::marker::PhantomData, pp: std::marker::PhantomPinned, c: std::cell::Cell, uc: std::cell::UnsafeCell, suc: std::cell::SyncUnsafeCell, zst: ZST, } fn main() {}