diff options
Diffstat (limited to 'tests/rustdoc/assoc-item-cast.rs')
-rw-r--r-- | tests/rustdoc/assoc-item-cast.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/rustdoc/assoc-item-cast.rs b/tests/rustdoc/assoc-item-cast.rs new file mode 100644 index 000000000..ab9702a24 --- /dev/null +++ b/tests/rustdoc/assoc-item-cast.rs @@ -0,0 +1,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; |