about summary refs log tree commit diff
path: root/tests/rustdoc-ui/synthetic-auto-trait-impls/lifetime-generic-user-impl.rs
blob: 31d1b11ff310e35eaa8cd2cf3c4e027495caf5fa (plain)
1
2
3
4
5
6
7
8
9
10
11
// We used to ICE here while trying to synthesize auto trait impls.
// issue: 123370
//@ check-pass

pub struct Inner<'a, Q>(&'a (), Q);

pub struct Outer<'a, Q>(Inner<'a, Q>);

impl<'a, Q: Trait<'a>> std::marker::Unpin for Inner<'static, Q> {}

pub trait Trait<'a> {}