about summary refs log tree commit diff
path: root/tests/rustdoc-ui/synthetic-auto-trait-impls/lifetime-generic-user-impl-normalize.rs
blob: 1b67c2bc8756b7e5f37499dae7cd300171430b6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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>(Q);
pub struct Outer<Q>(Inner<Q>);

impl<'a, Q> std::marker::Unpin for Inner<Q>
where
    Q: MyTrait<'a>,
    <Q as MyTrait<'a>>::MyItem: Copy,
{
}