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.

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