Info
This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Are consts really allocations?
The standard library documentation says:
Examples of allocations include heap allocations, stack-allocated variables, statics, and consts.
Consts aren't allocations... are they? Each use of one is, I guess, in the sense that all temporaries are allocations.
2 posts - 2 participants
🏷️ Rust_feed