diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2019-11-13 02:16:01 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-13 02:16:01 +0100 |
| commit | fd868d4bf4d0be79b7bb0c38145faecb18f18217 (patch) | |
| tree | e58bf6c6841e588e7e14cb170c4879bc36f62af2 /src/librustc/error_codes.rs | |
| parent | 1de094a28e1b648553e5ab3c84b8336a1d2f26ad (diff) | |
| download | rust-fd868d4bf4d0be79b7bb0c38145faecb18f18217.tar.gz rust-fd868d4bf4d0be79b7bb0c38145faecb18f18217.zip | |
tidy up!
Diffstat (limited to 'src/librustc/error_codes.rs')
| -rw-r--r-- | src/librustc/error_codes.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/error_codes.rs b/src/librustc/error_codes.rs index dab8fd565fa..a7a66fd7cd7 100644 --- a/src/librustc/error_codes.rs +++ b/src/librustc/error_codes.rs @@ -1912,8 +1912,8 @@ fn bar<'short, 'long>(c: Foo<'short>, l: &'long isize) { ``` In this example, we tried to set a value with an incompatible lifetime to -another one (`'long` is unrelated to `'short`). We can solve this issue in two different -ways: +another one (`'long` is unrelated to `'short`). We can solve this issue in +two different ways: Either we make `'short` live at least as long as `'long`: |
