Skip to content

Commit 614f78c

Browse files
authored
Keep where Self: Sized at bottom
1 parent 23960df commit 614f78c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/items/traits.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Object safe traits can be the base trait of a [trait object]. A trait is
7373
* It must not have any associated types with generics.
7474
* All associated functions must either be dispatchable from a trait object or be explicitly non-dispatchable:
7575
* Dispatchable functions must:
76-
* Not have any type parameters (although lifetime parameters are allowed),
76+
* Not have any type parameters (although lifetime parameters are allowed).
7777
* Be a [method] that does not use `Self` except in the type of the receiver.
7878
* Have a receiver with one of the following types:
7979
* `&Self` (i.e. `&self`)
@@ -82,10 +82,10 @@ Object safe traits can be the base trait of a [trait object]. A trait is
8282
* [`Rc<Self>`]
8383
* [`Arc<Self>`]
8484
* [`Pin<P>`] where `P` is one of the types above
85-
* Not have a `where Self: Sized` bound (receiver type of `Self` (i.e. `self`) implies this).
8685
* Not have an opaque return type; that is,
87-
* Not be an `async fn` (which has a hidden `Future` type)
88-
* Not have a return position `impl Trait` type (`fn example(&self) -> impl Trait`)
86+
* Not be an `async fn` (which has a hidden `Future` type).
87+
* Not have a return position `impl Trait` type (`fn example(&self) -> impl Trait`).
88+
* Not have a `where Self: Sized` bound (receiver type of `Self` (i.e. `self`) implies this).
8989
* Explicitly non-dispatchable functions require:
9090
* Have a `where Self: Sized` bound (receiver type of `Self` (i.e. `self`) implies this).
9191

0 commit comments

Comments
 (0)