]> git.lizzy.rs Git - rust.git/blob - tests/ui/associated-consts/associated-const-array-len.rs
add tests for 107090
[rust.git] / tests / ui / associated-consts / associated-const-array-len.rs
1 trait Foo {
2     const ID: usize;
3 }
4
5 const X: [i32; <i32 as Foo>::ID] = [0, 1, 2];
6 //~^ ERROR the trait bound `i32: Foo` is not satisfied
7
8 fn main() {
9     assert_eq!(1, X);
10 }