Tracking issue for FromStr
trait usage in const fn
#59133
Labels
A-const-fn
Area: const fn foo(..) {..}. Pure functions which can be applied at compile time.
C-tracking-issue
Category: A tracking issue for an RFC or an unstable feature.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
Because Rust already have macros that evaluate on compile time to strings I think converting them to ints in a
const fn
is a very nice feature.e.g.
env!("SOMETHING").parse::<usize>().unwrap()
I opened this Issue as part of: #57563
Interested to hear if other people want this and if it's already exists as part of a different issue/RFC
The text was updated successfully, but these errors were encountered: