Skip to content

Commit c0d32fd

Browse files
review updates
1 parent 0d9c014 commit c0d32fd

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_error_codes/src/error_codes

1 file changed

+2
-2
lines changed

compiler/rustc_error_codes/src/error_codes/E0311.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
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.
33

44
Erroneous code example:
55

@@ -21,7 +21,7 @@ The compiler elides the lifetime of `x` and the return type to some arbitrary
2121
lifetime `'anon` in `no_restriction()`. The only information available to the
2222
compiler is that `'anon` is valid for the duration of the function. When
2323
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
2525
`with_restriction()`. This causes an error because `T` is not required to
2626
outlive `'anon` in `no_restriction()`.
2727

0 commit comments

Comments
 (0)