-
I have a system:
Within that system, some of the queries are processed in a second function, which returns references:
I tried specifying lifetime parameters, but if you follow what the compiler tells you, you end up with lifetime specifiers on the system itself which the compiler objects to also. What is the way to specifying lifetime parameters such that the second function returns references? I have multiple things being returned in If I get rid of the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Why do these things decide to work immediately after me asking the question? Have just tried the following:
That compiles. No doubt a bunch of these are redundant so I'll play around with it further. This does not require lifetime parameters on the system itself, only this function. Presumably they're inferred by the compiler for the system. |
Beta Was this translation helpful? Give feedback.
Why do these things decide to work immediately after me asking the question? Have just tried the following:
That compiles. No doubt a bunch of these are redundant so I'll play around with it further.
This does not require lifetime parameters on the system itself, only this function. Presumably they're inferred by the compiler for the system.