1 error: any use of this value will cause an error
2 --> $DIR/issue-50814-2.rs:14:24
4 LL | const BAR: usize = [5, 6, 7][T::BOO];
5 | -------------------^^^^^^^^^^^^^^^^^-
7 | index out of bounds: the length is 3 but the index is 42
9 = note: `#[deny(const_err)]` on by default
10 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
11 = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
13 error[E0080]: evaluation of constant value failed
14 --> $DIR/issue-50814-2.rs:19:6
16 LL | &<A<T> as Foo<T>>::BAR
17 | ^^^^^^^^^^^^^^^^^^^^^ referenced constant has errors
19 error: aborting due to 2 previous errors
21 For more information about this error, try `rustc --explain E0080`.