trait Foo { const ID: usize; } const X: [i32; ::ID] = [0, 1, 2]; //~^ ERROR the trait bound `i32: Foo` is not satisfied fn main() { assert_eq!(1, X); }