1 error[E0080]: evaluation of `S::<i32>::FOO` failed
2 --> $DIR/const-err-late.rs:13:21
4 LL | const FOO: u8 = [5u8][1];
5 | ^^^^^^^^ index out of bounds: the length is 1 but the index is 1
7 note: erroneous constant used
8 --> $DIR/const-err-late.rs:19:16
10 LL | black_box((S::<i32>::FOO, S::<u32>::FOO));
13 note: erroneous constant used
14 --> $DIR/const-err-late.rs:19:16
16 LL | black_box((S::<i32>::FOO, S::<u32>::FOO));
19 error[E0080]: evaluation of `S::<u32>::FOO` failed
20 --> $DIR/const-err-late.rs:13:21
22 LL | const FOO: u8 = [5u8][1];
23 | ^^^^^^^^ index out of bounds: the length is 1 but the index is 1
25 note: erroneous constant used
26 --> $DIR/const-err-late.rs:19:31
28 LL | black_box((S::<i32>::FOO, S::<u32>::FOO));
31 note: erroneous constant used
32 --> $DIR/const-err-late.rs:19:31
34 LL | black_box((S::<i32>::FOO, S::<u32>::FOO));
37 note: erroneous constant used
38 --> $DIR/const-err-late.rs:19:16
40 LL | black_box((S::<i32>::FOO, S::<u32>::FOO));
43 note: erroneous constant used
44 --> $DIR/const-err-late.rs:19:31
46 LL | black_box((S::<i32>::FOO, S::<u32>::FOO));
49 error: aborting due to 2 previous errors
51 For more information about this error, try `rustc --explain E0080`.