Skip to content

Commit

Permalink
just one lifetime
Browse files Browse the repository at this point in the history
  • Loading branch information
durka committed Mar 6, 2017
1 parent 819d8f9 commit 8a72471
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion text/0000-trait-alias.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ parameter declarations*.

When using a trait alias as an object type, it is subject to object safety restrictions _after_ substituting the aliased traits. This means:

1. It contains an object safe trait, zero or more lifetimes, and zero or more of these other bounds: `Send`, `Sync` (that is, `trait Show = Display + Debug;` would not be object safe).
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).
2. All the associated types of the trait need to be specified.
3. The `where` clause, if present, only contains bounds on `Self`.

Expand Down

0 comments on commit 8a72471

Please sign in to comment.