summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/assoc-item-cast.rs
blob: ab9702a24f469834a8fba8881cd660977831b744 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![crate_name = "foo"]

pub trait Expression {
    type SqlType;
}

pub trait AsExpression<T> {
    type Expression: Expression<SqlType = T>;
    fn as_expression(self) -> Self::Expression;
}

// @has foo/type.AsExprOf.html
// @has - '//div[@class="item-decl"]/pre[@class="rust"]' 'type AsExprOf<Item, Type> = <Item as AsExpression<Type>>::Expression;'
pub type AsExprOf<Item, Type> = <Item as AsExpression<Type>>::Expression;