rustdoc: synthetic auto trait impls: accept unresolved region vars for now
This commit is contained in:
parent
5dbaafdb93
commit
70b4ace09d
3 changed files with 35 additions and 1 deletions
|
@ -0,0 +1,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> {}
|
Loading…
Add table
Add a link
Reference in a new issue