Closed
Description
Currently, rustdoc renders the Index
trait as:
pub trait Index<Index> where Index: ?Sized {
type Output;
fn index(&'a self, index: &Index) -> &'a <Self as Index<Index>>::Output;
}
Ideally it would render as
pub trait Index<Index> where Index: ?Sized {
type Output;
fn index(&'a self, index: &Index) -> &'a Self::Output;
}
and eventually, when the scoping rules for associated items are settled, it could skip even the Self::