about summary refs log tree commit diff
path: root/compiler/rustc_error_codes/src
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/rustc_error_codes/src')
-rw-r--r--compiler/rustc_error_codes/src/error_codes/E0311.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0311.md b/compiler/rustc_error_codes/src/error_codes/E0311.md
index 768b849817d..08159d3f469 100644
--- a/compiler/rustc_error_codes/src/error_codes/E0311.md
+++ b/compiler/rustc_error_codes/src/error_codes/E0311.md
@@ -1,5 +1,5 @@
 This error occurs when there is an unsatisfied outlives bound involving an
-elided region on a generic type parameter or associated type.
+elided region and a generic type parameter or associated type.
 
 Erroneous code example:
 
@@ -21,7 +21,7 @@ The compiler elides the lifetime of `x` and the return type to some arbitrary
 lifetime `'anon` in `no_restriction()`. The only information available to the
 compiler is that `'anon` is valid for the duration of the function. When
 calling `with_restriction()`, the compiler requires the completely unrelated
-type parameter `T` to outlive `'anon` because of the `T: 'a bound` in
+type parameter `T` to outlive `'anon` because of the `T: 'a` bound in
 `with_restriction()`. This causes an error because `T` is not required to
 outlive `'anon` in `no_restriction()`.