Skip to content

Commit

Permalink
Type parameter Self is unsized by default
Browse files Browse the repository at this point in the history
  • Loading branch information
fmease committed Oct 19, 2022
1 parent 8104645 commit 1bc6279
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/special-types-and-traits.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ UnwindSafe>` is a valid type.
## `Sized`

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

Expand Down

0 comments on commit 1bc6279

Please sign in to comment.