// We used to ICE here while trying to synthesize auto trait impls. // issue: 112242 //@ check-pass //@ compile-flags: -Znormalize-docs pub trait MyTrait<'a> { type MyItem; } pub struct Inner(Q); pub struct Outer(Inner); impl<'a, Q> std::marker::Unpin for Inner where Q: MyTrait<'a>, >::MyItem: Copy, { }