42Inline const expressions have been stabilised(github.com)posted 7 months ago bySorteKanin@feddit.dkin rust@programming.devView comments12 commentssavehidereportSort:HotTopControversialNewOldYou are viewing a single thread.View all comments View context [ +- ]SorteKanin@feddit.dkOP2 points7 months agoWait, in pattern context? How? Can you give an example? permalinksavereportparentreply[ +- ]0v0@sopuli.xyz10 points7 months agofn foo(x: i32) { match x { const { 3.pow(3) } => println!("three cubed"), _ => {} } } But it looks like inline_const_pat is still unstable, only inline_const in expression position is now stabilized. permalinksavereportparentreply