File tree 1 file changed +6
-3
lines changed 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -331,9 +331,12 @@ error[E0309]: the type `T` may not live long enough
331
331
332
332
Due to the implied bounds rules, it is currently the case that
333
333
removing ` where T: 'a ` annotations is potentially a breaking
334
- change. After this RFC, the rule is a bit more subtle: removing a
335
- field of type ` &'a T ` could affect the results of inference, and hence
336
- may be a breaking change. As an example, consider a struct like this:
334
+ change. After this RFC, the rule is a bit more subtle: removing an
335
+ annotation is still potentially a breaking change (even if it would be
336
+ inferred), due to the trait object rules; but also, adding or removing
337
+ a field of type ` &'a T ` could affect the results of inference, and
338
+ hence may be a breaking change. As an example, consider a struct like
339
+ this:
337
340
338
341
``` rust
339
342
struct Iter <'a , T > {
You can’t perform that action at this time.
0 commit comments