2 #![recursion_limit="1024"]
7 pub struct S1<T>(Option<Box<S0<S0<T>>>>,Option<Box<S0<S0<T>>>>);
8 pub struct S2<T>(Option<Box<S1<S1<T>>>>,Option<Box<S1<S1<T>>>>);
9 pub struct S3<T>(Option<Box<S2<S2<T>>>>,Option<Box<S2<S2<T>>>>);
10 pub struct S4<T>(Option<Box<S3<S3<T>>>>,Option<Box<S3<S3<T>>>>);
11 pub struct S5<T>(Option<Box<S4<S4<T>>>>,Option<Box<S4<S4<T>>>>,Option<T>);
13 trait Foo { fn xxx(&self); }
14 /// some local of #[fundamental] trait
17 impl<T> Foo for T where T: Bar, T: Sync {
21 impl Foo for S5<u8> { fn xxx(&self) {} }
24 let s = S5(None,None,None);
26 assert_eq!(mem::size_of_val(&s.2), mem::size_of::<Option<u8>>());