Why std::mem::forget cannot be used for creating static references?
Channel:
Subscribers:
4,120
Published on ● Video Link: https://www.youtube.com/watch?v=4xffCpb2AC0
Why std::mem::forget cannot be used for creating static references?
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA
Thanks to all those great people for their contributions!
(stackoverflow.com/users/17878829/akash-r)Akash R
(stackoverflow.com/users/2189130/kmdreko)kmdreko
(stackoverflow.com/users/442760/cafce25)cafce25
(stackoverflow.com/users/17878829/akash-r)Akash R
A special thanks goes out to the (https://stackoverflow.com/questions/76706784/why-stdmemforget-cannot-be-used-for-creating-static-references)Stackexchange community
I wish you all a wonderful day! Stay safe :)
rust lifetime
Other Videos By Peter Schneider
Tags:
rust
lifetime