azdle ( azdle@news.idlestate.org ) to Rust@programming.devEnglish · 1 year agothings rust shipped without (2015)graydon2.dreamwidth.orgexternal-linkmessage-square17linkfedilinkarrow-up125
arrow-up125external-linkthings rust shipped without (2015)graydon2.dreamwidth.orgazdle ( azdle@news.idlestate.org ) to Rust@programming.devEnglish · 1 year agomessage-square17linkfedilink
minus-squareTehPers ( TehPers@beehaw.org ) linkfedilinkEnglisharrow-up6·1 year agoAs in using consts (or variables you think are consts) as refutable patterns? Yeah this was an oversight I’m sure. One option is an edition change requiring a const keyword, so match foo { const BAR => {}, baz => {}, } Right now they use a lint to try to warn the dev though.
As in using consts (or variables you think are consts) as refutable patterns? Yeah this was an oversight I’m sure.
One option is an edition change requiring a
constkeyword, soRight now they use a lint to try to warn the dev though.