Packaging Rust for Fedora
Packaging Rust for Fedora
Posted Oct 31, 2022 1:03 UTC (Mon) by ssokolow (guest, #94568)In reply to: Packaging Rust for Fedora by tialaramex
Parent article: Packaging Rust for Fedora
I've been using Rust since 1.0. I know what lifetime elision is. Maybe my phrasing wasn't clear enough that the "even requiring you to write out lifetime annotations in places where they could be inferred" was scoped to the "and structs", not the entire sentence.
I was referring to how, yes, you can elide lifetimes in function signatures, but you'll get a "missing lifetime specifier" error if you try to do something like this:
struct Thing { inner: &str, }When lifetime elision was implemented, stopping there was a conscious decision.
Posted Nov 1, 2022 8:28 UTC (Tue)
by tialaramex (subscriber, #21167)
[Link]
Packaging Rust for Fedora