File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -70,10 +70,11 @@ fn main() {
7070
7171# More to Explore
7272
73- - The "help" message in the error notes that we can add a lifetime bound `'b:
74- 'a` to say that ` 'b` will live at least as long as ` 'a`, which would then
75- allow us to return ` query ` . This is an example of lifetime "variance", which
76- allows us to return a longer lifetime where a shorter one is expected.
73+ - The "help" message in the error notes that we can add a lifetime bound
74+ `'b:
75+ 'a` to say that ` 'b` will live at least as long as ` 'a`, which would
76+ then allow us to return ` query ` . This is an example of lifetime "variance",
77+ which allows us to return a longer lifetime where a shorter one is expected.
7778
7879- We can do something similar by returning a ` 'static ` lifetime, e.g. a
7980 reference to a ` static ` variable. The ` 'static ` lifetime is guaranteed to be
You can’t perform that action at this time.
0 commit comments