diff options
Diffstat (limited to 'src/test/rustdoc/issue-56701.rs')
-rw-r--r-- | src/test/rustdoc/issue-56701.rs | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/test/rustdoc/issue-56701.rs b/src/test/rustdoc/issue-56701.rs deleted file mode 100644 index ba00743fc..000000000 --- a/src/test/rustdoc/issue-56701.rs +++ /dev/null @@ -1,33 +0,0 @@ -// This shouldn't cause a stack overflow when rustdoc is run - -use std::ops::Deref; -use std::ops::DerefMut; - -pub trait SimpleTrait { - type SimpleT; -} - -impl<Inner: SimpleTrait, Outer: Deref<Target = Inner>> SimpleTrait for Outer { - type SimpleT = Inner::SimpleT; -} - -pub trait AnotherTrait { - type AnotherT; -} - -impl<T, Simple: SimpleTrait<SimpleT = Vec<T>>> AnotherTrait for Simple { - type AnotherT = T; -} - -pub struct Unrelated<Inner, UnrelatedT: DerefMut<Target = Vec<Inner>>>(UnrelatedT); - -impl<Inner, UnrelatedT: DerefMut<Target = Vec<Inner>>> Deref for Unrelated<Inner, UnrelatedT> { - type Target = Vec<Inner>; - - fn deref(&self) -> &Self::Target { - &self.0 - } -} - - -pub fn main() { } |