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