42
Inline const expressions have been stabilised
(github.com)
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Credits
It can be used for producing const values in arbitrary context. Can basically be swapped for c++'s constexpr.
C++'s const does not exist in rust (values are const by default).