Why can't Rust use non-const-qualified functions to allocate const variables? In other words, why does it matter whether or not a function is const if the data it's operating on is const?
These questions were originally asked as part of this question, but a commenter pointed out that they would be more suitable for a separate post.
Edit: A kind user already answered these questions on my original post. Thanks @drewtato!
Edit 2: I don't get this site. Somebody complains that I have two questions in one post, so I pull one of the questions out, and then someone else complains that I pulled the question out. I try so hard to be polite and organize things the way people want, but I invariably get it wrong somehow. This isn't a duplicate. This is me pulling one of the two questions out of my original post, but referring back to the kind user that answered both of my questions instead of pedantically berating me over the finer points of SO etiquette.