3 #![feature(ptr_metadata)]
5 use std::alloc::Layout;
16 struct Wrapper1<T: Foo>(#[allow(unused_tuple_struct_fields)] <T as Foo>::Bar);
17 struct Wrapper2<T: Foo>(#[allow(unused_tuple_struct_fields)] <Wrapper1<T> as Pointee>::Metadata);
20 let _: Wrapper2<()> = Wrapper2(());
21 let _ = Layout::new::<Wrapper2<()>>();