External Publication
Visit Post

Add new reserved lifetime: 'owned

Rust Internals [Unofficial] April 4, 2026
Source

Voldemat:

impl<'s1, S: AsStr<'s1>> Check<'s1, S> {
    pub fn clone_to_owned(
        self: &'s1 Self,

you are constructing an &'a Foo<'a> which is a common mistake, that causes self to be "borrowed forever". if you change it to just self: &Self it compiles: Rust Playground

Discussion in the ATmosphere

Loading comments...