Skip to content

Commit b29628a

Browse files
committed
Rollup merge of rust-lang#30689 - Manishearth:lifetime-bound, r=steveklabnik
We should have stuff on this in the book somewhere too r? @steveklabnik
2 parents b2f4c5c + 5a14f37 commit b29628a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/doc/book/syntax-index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@
132132
<!-- Constraints -->
133133

134134
* `T: U`: generic parameter `T` constrained to types that implement `U`. See [Traits].
135-
* `T: 'a`: generic type `T` must outlive lifetime `'a`.
135+
* `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`.
136+
* `T : 'static`: The generic type `T` contains no borrowed references other than `'static` ones.
136137
* `'b: 'a`: generic lifetime `'b` must outlive lifetime `'a`.
137138
* `T: ?Sized`: allow generic type parameter to be a dynamically-sized type. See [Unsized Types (`?Sized`)].
138139
* `'a + trait`, `trait + trait`: compound type constraint. See [Traits (Multiple Trait Bounds)].

0 commit comments

Comments
 (0)