// compile-flags: -Znormalize-docs use std::ops::Index; pub fn next<'a, T>(s: &'a mut dyn SVec) { let _ = s; } pub trait SVec: Index< ::Item, Output = ::Item, Output = ::Item> as SVec>::Item, > { type Item<'a, T>; fn len(&self) -> ::Item; //~^ ERROR //~^^ ERROR }