Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Improve syntax-index entry for lifetime bounds
  • Loading branch information
Manishearth committed Jan 4, 2016
1 parent 4744472 commit 5a14f37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/doc/book/syntax-index.md
Expand Up @@ -132,7 +132,8 @@
<!-- Constraints -->

* `T: U`: generic parameter `T` constrained to types that implement `U`. See [Traits].
* `T: 'a`: generic type `T` must outlive lifetime `'a`.
* `T: 'a`: generic type `T` must outlive lifetime `'a`. When we say that a type 'outlives' the lifetime, we mean that it cannot transitively contain any references with lifetimes shorter than `'a`.
* `T : 'static`: The generic type `T` contains no borrowed references other than `'static` ones.
* `'b: 'a`: generic lifetime `'b` must outlive lifetime `'a`.
* `T: ?Sized`: allow generic type parameter to be a dynamically-sized type. See [Unsized Types (`?Sized`)].
* `'a + trait`, `trait + trait`: compound type constraint. See [Traits (Multiple Trait Bounds)].
Expand Down

0 comments on commit 5a14f37

Please sign in to comment.