This is the motivating example for this crate (slight difference between README and docs):
struct Foo<T, N> {
data: [T; N]
}
Could this not be written (in recent Rust versions) as:
struct Foo<T, const N: usize> {
data: [T; N]
}
If not, maybe update the motivating example?