]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/assoc-item-cast.rs
Auto merge of #107443 - cjgillot:generator-less-query, r=compiler-errors
[rust.git] / tests / rustdoc / assoc-item-cast.rs
1 #![crate_name = "foo"]
2
3 pub trait Expression {
4     type SqlType;
5 }
6
7 pub trait AsExpression<T> {
8     type Expression: Expression<SqlType = T>;
9     fn as_expression(self) -> Self::Expression;
10 }
11
12 // @has foo/type.AsExprOf.html
13 // @has - '//div[@class="item-decl"]/pre[@class="rust"]' 'type AsExprOf<Item, Type> = <Item as AsExpression<Type>>::Expression;'
14 pub type AsExprOf<Item, Type> = <Item as AsExpression<Type>>::Expression;