File tree 1 file changed +2
-2
lines changed
compiler/rustc_error_codes/src/error_codes
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
This error occurs when there is an unsatisfied outlives bound involving an
2
- elided region on a generic type parameter or associated type.
2
+ elided region and a generic type parameter or associated type.
3
3
4
4
Erroneous code example:
5
5
@@ -21,7 +21,7 @@ The compiler elides the lifetime of `x` and the return type to some arbitrary
21
21
lifetime ` 'anon ` in ` no_restriction() ` . The only information available to the
22
22
compiler is that ` 'anon ` is valid for the duration of the function. When
23
23
calling ` with_restriction() ` , the compiler requires the completely unrelated
24
- type parameter ` T ` to outlive ` 'anon ` because of the ` T: 'a bound ` in
24
+ type parameter ` T ` to outlive ` 'anon ` because of the ` T: 'a ` bound in
25
25
` with_restriction() ` . This causes an error because ` T ` is not required to
26
26
outlive ` 'anon ` in ` no_restriction() ` .
27
27
You can’t perform that action at this time.
0 commit comments