Skip to content

Commit df02a2a

Browse files
authored
Add a remark about Sized bounds
1 parent 2aa7990 commit df02a2a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

text/0000-implied-bounds.md

+2
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,8 @@ WF(T: Bar)
420420
WF(T: Foo)
421421
```
422422

423+
**Remark**: Reverse rules include implicit `Sized` bounds on type declarations. However, they do not include (explicit) `?Sized` bounds since those are not *real* trait bounds, but only a way to disable the implicit `Sized` bound.
424+
423425
## Input types
424426
We define the notion of input types of a type. Basically, input types refer to all types that are accessible from referencing to a specific type. For example, a function will assume that the input types of its arguments are well-formed, hence in the body of that function we'll be able to derive implied bounds thanks to the reverse rules described earlier.
425427

0 commit comments

Comments
 (0)