1 2 3 4 5 6 7 8 9 10 11
#![feature(const_generics)] trait A { fn foo(&self); } pub struct B<const N: usize>([usize; N]); impl<const N: usize> A for B<{ N }> { fn foo(&self) {} }