diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-08-20 15:25:35 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-08-20 15:25:35 +0200 |
| commit | 7f55c834873cd9363bbdfa199f3d0dbadce99592 (patch) | |
| tree | f1324f3cff8f5eeba7532bde2953a9fc8aa01a15 /src/librustc_error_codes | |
| parent | 46f2b410e0871587dde5e4375d23ebe332ec1176 (diff) | |
| download | rust-7f55c834873cd9363bbdfa199f3d0dbadce99592.tar.gz rust-7f55c834873cd9363bbdfa199f3d0dbadce99592.zip | |
Apply review comments
Diffstat (limited to 'src/librustc_error_codes')
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0759.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_error_codes/error_codes/E0759.md b/src/librustc_error_codes/error_codes/E0759.md index 2daaeba82f0..6d525310f75 100644 --- a/src/librustc_error_codes/error_codes/E0759.md +++ b/src/librustc_error_codes/error_codes/E0759.md @@ -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; |
