Create a library with the following src/lib.rs:
pub trait SomeTrait {
type Typ;
}
pub struct Foo<T> {
bar: T
}
impl<T: SomeTrait> Foo<T> {
pub fn foo(&self, bar: T::Typ) {}
}
and run cargo doc. The documentation will show the type of Foo::foo as fn foo(&self, bar: T) and not fn foo(&self, bar: T::Typ) as expected.
rustdoc 1.0.0-beta (9854143cb 2015-04-02) (built 2015-04-02)