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,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,
|
||||
{
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue