The Rust team is happy to announce the latest version of Rust, 1.20.0. Rust is a systems programming language focused on safety, speed, and concurrency.
Associated constants Associated constants were proposed in RFC 195 (github.com/rust-lang/rfcs/blob/master/text/0195-associated-items.md), almost exactly three years ago. It’s been quite a while for this feature! That RFC contained all associated items, not just constants, and so some of them, such as associated types, were implemented faster than others. In general, we’ve been doing a lot of internal work for constant evaluation, to increase Rust’s capabilities for compile-time metaprogramming. Expect more on this front in the future. struct Struct;impl Struct { const ID: u32 = 0;}fn main() { println!("the ID of Struct is: {}", Struct::ID);} trait Trait { const ID: u32;}struct Struct;impl Trait for Struct { const ID: u32 = 5;}fn main() { println!("{}", Struct::ID);}