Closed
Description
There's an actual difference between fn get_str<'a>() -> &'a str;
and fn get_str() -> &'static str;
. There wasn't until rust-lang/rust#42417 got merged, but since then <'a>
will work in some cases where a simple 'static
will not.
Metadata
Metadata
Assignees
Labels
No labels