]> git.lizzy.rs Git - rust.git/commitdiff
Apply review comments
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Thu, 20 Aug 2020 13:25:35 +0000 (15:25 +0200)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Thu, 20 Aug 2020 13:25:35 +0000 (15:25 +0200)
src/librustc_error_codes/error_codes/E0759.md

index 2daaeba82f06701f1e60513be958247f4806f118..6d525310f75c3320cd0cea6cc8140d65b8219f67 100644 (file)
@@ -1,4 +1,4 @@
-A `'static` requirement in a return type involving a trait is not fulfilled.
+Return type involving a trait did not require `'static` lifetime.
 
 Erroneous code examples:
 
@@ -14,7 +14,7 @@ fn bar(x: &i32) -> Box<dyn Debug> { // error!
 }
 ```
 
-These examples have the same semantics as the following:
+Add `'static` requirement to fix them:
 
 ```compile_fail,E0759
 # use std::fmt::Debug;