A taste of what const generics could enable in the future
#![feature(generic_const_exprs)]usegeneric_predicates::generic_predicates;generic_predicates!{pubfnfoo<const N:usize>()where(N > 23, "`N` must be greater than 23"){}}fnmain(){// This compiles.
foo::<24>();// This doesn't.
foo::<23>();}