>();
@@ -3905,6 +3915,29 @@ fn render_impl(w: &mut fmt::Formatter, cx: &Context, i: &Impl, link: AssocItemLi
Ok(())
}
+fn item_existential(
+ w: &mut fmt::Formatter,
+ cx: &Context,
+ it: &clean::Item,
+ t: &clean::Existential,
+) -> fmt::Result {
+ write!(w, "")?;
+ render_attributes(w, it)?;
+ write!(w, "existential type {}{}{where_clause}: {bounds};",
+ it.name.as_ref().unwrap(),
+ t.generics,
+ where_clause = WhereClause { gens: &t.generics, indent: 0, end_newline: true },
+ bounds = bounds(&t.bounds))?;
+
+ document(w, cx, it)?;
+
+ // Render any items associated directly to this alias, as otherwise they
+ // won't be visible anywhere in the docs. It would be nice to also show
+ // associated items from the aliased type (see discussion in #32077), but
+ // we need #14072 to make sense of the generics.
+ render_assoc_items(w, cx, it, it.def_id, AssocItemRender::All)
+}
+
fn item_typedef(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item,
t: &clean::Typedef) -> fmt::Result {
write!(w, "")?;