]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/assoc-item-cast.rs
rustdoc: use details tag for trait implementors
[rust.git] / src / test / rustdoc / assoc-item-cast.rs
1 #![crate_name = "foo"]
2
3
4 pub trait Expression {
5     type SqlType;
6 }
7
8 pub trait AsExpression<T> {
9     type Expression: Expression<SqlType = T>;
10     fn as_expression(self) -> Self::Expression;
11 }
12
13 // @has foo/type.AsExprOf.html
14 // @has - '//*[@class="rust typedef"]' 'type AsExprOf<Item, Type> = <Item as AsExpression<Type>>::Expression;'
15 pub type AsExprOf<Item, Type> = <Item as AsExpression<Type>>::Expression;