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