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