1
Fork 0
This commit is contained in:
Dylan DPC 2019-11-13 02:16:01 +01:00 committed by GitHub
parent 1de094a28e
commit fd868d4bf4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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`: