2 // Issue 36036: computing the layout of a type composed from another
3 // trait's associated type caused compiler to ICE when the associated
4 // type was allowed to be unsized, even though the known instantiated
5 // type is itself sized.
10 type Container: ?Sized;
13 impl Context for u16 {
17 struct Wrapper<C: Context+'static> {
18 container: &'static C::Container
21 fn foobar(_: Wrapper<u16>) {}
26 foobar(Wrapper { container: &VALUE });