If a function borrows something with a static lifetime the borrow still exists after the function completes. Is it true
If a function takes an argument of type
&'static T for some
T, then yes, the value that the reference points at will exist until the program exits.
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.