Skip to content

Commit 5a14f37

Browse files
committed
Improve syntax-index entry for lifetime bounds
1 parent 4744472 commit 5a14f37

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)