rust/tests/rustdoc-ui/synthetic-auto-trait-impls/lifetime-generic-user-impl.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
269 B
Rust
Raw Normal View History

// 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> {}