3 ms·
You can use constant expressions in const generics in many cases. https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=1c1073976ef2fda5fcd4b
by nynx 5y ago
You can use constant expressions in const generics in many cases.
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=1c1073976ef2fda5fcd4be32cea49e92 https://play.rust-lang.org/?version=stable&mode=debug&editio...
- dthul 5y agoThanks! I didn't realize that it required curly braces and only went off of the red squiggly line my IDE put there instead of reading the helpful compiler output.