You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: text/0000-trait-alias.md
+11-7
Original file line number
Diff line number
Diff line change
@@ -133,23 +133,27 @@ parameter declarations*.
133
133
134
134
When using a trait alias as an object type, it is subject to object safety restrictions _after_ substituting the aliased traits. This means:
135
135
136
-
1. It contains an object safe traitand zero or more of these other bounds: `Send`, `Sync`, `'static` (that is, `trait Show = Display + Debug;` would not be object safe).
136
+
1. It contains an object safe trait, optionally a lifetime, and zero or more of these other bounds: `Send`, `Sync` (that is, `trait Show = Display + Debug;` would not be object safe).
137
137
2. All the associated types of the trait need to be specified.
138
+
3. The `where` clause, if present, only contains bounds on `Self`.
0 commit comments