Skip to content

Commit 3ae6268

Browse files
authored
Merge pull request #1285 from fmease/self-is-unsized-by-default
Document that type parameter `Self` is unsized by default
2 parents e279799 + 50a597c commit 3ae6268

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/special-types-and-traits.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ UnwindSafe>` is a valid type.
135135
## `Sized`
136136

137137
The [`Sized`] trait indicates that the size of this type is known at compile-time; that is, it's not a [dynamically sized type].
138-
[Type parameters] are `Sized` by default, as are [associated types].
138+
[Type parameters] (except `Self` in traits) are `Sized` by default, as are [associated types].
139139
`Sized` is always implemented automatically by the compiler, not by [implementation items].
140140
These implicit `Sized` bounds may be relaxed by using the special `?Sized` bound.
141141

0 commit comments

Comments
 (0)