Skip to content

Commit

Permalink
fix(trait docs): remove unnecessary where Self: Sized clause
Browse files Browse the repository at this point in the history
  • Loading branch information
poliorcetics committed Sep 10, 2023
1 parent ee7c676 commit eea93fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/items/traits.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ trait NonDispatchable {
// `other` may be a different concrete type of the receiver.
fn param(&self, other: Self) where Self: Sized {}
// Generics are not compatible with vtables.
fn typed<T>(&self, x: T) where Self: Sized {}
fn typed<T>(&self, x: T) {}
}
struct S;
Expand Down

0 comments on commit eea93fc

Please sign in to comment.