From: Manish Goregaokar Date: Mon, 4 Jan 2016 04:01:29 +0000 (+0530) Subject: Improve syntax-index entry for lifetime bounds X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=5a14f3791db8b87a5e292a72dc1086cb0e72e93b;p=rust.git Improve syntax-index entry for lifetime bounds --- diff --git a/src/doc/book/syntax-index.md b/src/doc/book/syntax-index.md index f7e32943c63..8116247c766 100644 --- a/src/doc/book/syntax-index.md +++ b/src/doc/book/syntax-index.md @@ -132,7 +132,8 @@ * `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)].