]> git.lizzy.rs Git - rust.git/commitdiff
review updates
authorMatthew Kelly <matthew.kelly2@gmail.com>
Tue, 27 Sep 2022 23:23:59 +0000 (19:23 -0400)
committerMatthew Kelly <matthew.kelly2@gmail.com>
Tue, 27 Sep 2022 23:23:59 +0000 (19:23 -0400)
compiler/rustc_error_codes/src/error_codes/E0311.md

index 768b849817db575b9d0a12ef63de833d251be59f..08159d3f469ac8bad44d7385ffa0ab41b3e710ad 100644 (file)
@@ -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()`.