You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/doc/book/syntax-index.md
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -132,7 +132,8 @@
132
132
<!-- Constraints -->
133
133
134
134
*`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.
136
137
*`'b: 'a`: generic lifetime `'b` must outlive lifetime `'a`.
137
138
*`T: ?Sized`: allow generic type parameter to be a dynamically-sized type. See [Unsized Types (`?Sized`)].
138
139
*`'a + trait`, `trait + trait`: compound type constraint. See [Traits (Multiple Trait Bounds)].
0 commit comments