I want to have a function which owns its parameter, and returns ownership along with references to that parameter - but I can't figure out how to annotate the lifetime for rust to allow it:
fn line_refs(s: String) -> (String, Vec<&str>) {
(s, s.lines().collect())
}
Rust requires I add lifetime to the refs, but I'm not sure how I indicate that their lifetime is associated with s.