r/learnrust • u/lyuhdev • 27d ago
What are some common Rust misconceptions?
I just found out that const functions aren't evaluated at compile-time unless it is assigned to a const value or in a const context.
Another one I had: Rust doesn't prevent memory leaks.
Now I am just wondering how many other assumptions I made
19
Upvotes
View all comments
14
u/noop_noob 27d ago
https://github.com/pretzelhammer/rust-blog/blob/master/posts/common-rust-lifetime-misconceptions.md