Skip to content

Commit 7820e7c

Browse files
authored
Added limitation of TypeParamBounds
1 parent 747dc21 commit 7820e7c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/items/type-aliases.md

+3
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ let _ = TypeAlias(5); // Doesn't work
3434
A type alias without the [_Type_] specification may only appear as an
3535
[associated type] in a [trait].
3636

37+
A type alias with [_TypeParamBounds_] may only specified when used as
38+
an [associated type] in a [trait].
39+
3740
[IDENTIFIER]: ../identifiers.md
3841
[_GenericParams_]: generics.md
3942
[_TypeParamBounds_]: ../trait-bounds.md

0 commit comments

Comments
 (0)