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
`T: 'a` means that all lifetime parameters of `T` outlive `'a`. For example if
117
-
`'a` is an unconstrained lifetime parameter then `i32: 'static` and
118
-
`&'static str: 'a` are satisfied but `Vec<&'a ()>: 'static` is not.
116
+
`T: 'a` means that all lifetime parameters of `T` outlive `'a`.
117
+
For example, if `'a` is an unconstrained lifetime parameter, then `i32: 'static` and `&'static str: 'a` are satisfied, but `Vec<&'a ()>: 'static` is not.
119
118
120
119
## Higher-ranked trait bounds
121
120
@@ -136,8 +135,7 @@ impl<'a> PartialEq<i32> for &'a T {
136
135
137
136
and could then be used to compare a `&'a T` with any lifetime to an `i32`.
138
137
139
-
Only a higher-ranked bound can be used here as the lifetime of the reference is
140
-
shorter than a lifetime parameter on the function:
138
+
Only a higher-ranked bound can be used here, because the lifetime of the reference is shorter than any possible lifetime parameter on the function:
0 commit comments