tidy up!
This commit is contained in:
parent
1de094a28e
commit
fd868d4bf4
1 changed files with 2 additions and 2 deletions
|
@ -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
|
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
|
another one (`'long` is unrelated to `'short`). We can solve this issue in
|
||||||
ways:
|
two different ways:
|
||||||
|
|
||||||
Either we make `'short` live at least as long as `'long`:
|
Either we make `'short` live at least as long as `'long`:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue