summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-ui/recursive-deref-ice.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc-ui/recursive-deref-ice.rs')
-rw-r--r--tests/rustdoc-ui/recursive-deref-ice.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/rustdoc-ui/recursive-deref-ice.rs b/tests/rustdoc-ui/recursive-deref-ice.rs
index c44fd27f4..9e62841f9 100644
--- a/tests/rustdoc-ui/recursive-deref-ice.rs
+++ b/tests/rustdoc-ui/recursive-deref-ice.rs
@@ -4,7 +4,10 @@
pub struct Attribute;
-pub struct Map<'hir> {}
+pub struct Map<'hir> {
+ lt: &'hir (),
+}
+
impl<'hir> Map<'hir> {
pub fn attrs(&self) -> &'hir [Attribute] { &[] }
}