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
Unfortunately I haven't found an open bug on this subject.
I tried this code:
structA(Vec<u32>);implA{fndrain(self) -> Vec<u32>{letmut nums = self.0;
nums.drain(..).collect()// error: `nums` does not live long enough// but it works fine:// return nums.drain(..).collect();}}
Unfortunately I haven't found an open bug on this subject.
I tried this code:
Try it
The text was updated successfully, but these errors were encountered: