• @[email protected]
        link
        fedilink
        107 months ago
        fn 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.