File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -68,8 +68,7 @@ Object safe traits can be the base trait of a [trait object]. A trait is
68
68
* object safe* if it has the following qualities (defined in [ RFC 255] ):
69
69
70
70
* It must not require ` Self: Sized `
71
- * All associated functions must either have a ` where Self: Sized ` bound
72
- (reciever type of ` self: Self ` implies this), or
71
+ * All associated functions must either have a ` where Self: Sized ` bound (reciever type of ` self: Self ` implies this), or
73
72
* Not have any type parameters (although lifetime parameters are allowed),
74
73
and
75
74
* Be a [ method] that does not use ` Self ` except in the type of the receiver.
@@ -324,7 +323,7 @@ fn main() {
324
323
[ _WhereClause_ ] : generics.md#where-clauses
325
324
[ bounds ] : ../trait-bounds.md
326
325
[ trait object ] : ../types/trait-object.md
327
- [ RFC 255 ] : https://github.com/rust-lang/rfcs/blob/master/text/0255-object-.md
326
+ [ RFC 255 ] : https://github.com/rust-lang/rfcs/blob/master/text/0255-object-safety .md
328
327
[ associated items ] : associated-items.md
329
328
[ method ] : associated-items.md#methods
330
329
[ supertraits ] : traits.md#supertraits
You can’t perform that action at this time.
0 commit comments