Const generics

Const generics are a nightly-only feature that is still in development. It will allow Rust code to be generic over values, such as numbers or strings.

A subset of const generics, called, has been stabilized and will land in Rust 1.51.

Example
This example demonstrates how const generics can be used on nightly: