You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a Drop impl preventing , so the error should at least mention it. But the implicit reborrow self.url hides this error with a '*self.url' does not live long enough one.
Changing the impl to
impl<'a>S<'a>{fnfinish(self) -> &'amutString{let p = self.url;
p
}}
gives a better error message: self.urlcannot move out of type "S<'_>", which implements the "Drop" trait.