fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error: any use of this value will cause an error 2 --> $DIR/issue-50814-2.rs:12:24 3 | 4LL | const BAR: usize = [5, 6, 7][T::BOO]; 5 | -------------------^^^^^^^^^^^^^^^^^- 6 | | 7 | index out of bounds: the len is 3 but the index is 42 8 | 9 = note: `#[deny(const_err)]` on by default 10 11error[E0080]: evaluation of constant expression failed 12 --> $DIR/issue-50814-2.rs:16:5 13 | 14LL | &<A<T> as Foo<T>>::BAR 15 | ^--------------------- 16 | | 17 | referenced constant has errors 18 19error: aborting due to 2 previous errors 20 21For more information about this error, try `rustc --explain E0080`.