fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0080]: evaluation of `S::<i32>::FOO` failed 2 --> $DIR/const-err-late.rs:13:21 3 | 4LL | const FOO: u8 = [5u8][1]; 5 | ^^^^^^^^ index out of bounds: the length is 1 but the index is 1 6 7note: erroneous constant encountered 8 --> $DIR/const-err-late.rs:19:16 9 | 10LL | black_box((S::<i32>::FOO, S::<u32>::FOO)); 11 | ^^^^^^^^^^^^^ 12 13error[E0080]: evaluation of `S::<u32>::FOO` failed 14 --> $DIR/const-err-late.rs:13:21 15 | 16LL | const FOO: u8 = [5u8][1]; 17 | ^^^^^^^^ index out of bounds: the length is 1 but the index is 1 18 19note: erroneous constant encountered 20 --> $DIR/const-err-late.rs:19:31 21 | 22LL | black_box((S::<i32>::FOO, S::<u32>::FOO)); 23 | ^^^^^^^^^^^^^ 24 25note: erroneous constant encountered 26 --> $DIR/const-err-late.rs:19:16 27 | 28LL | black_box((S::<i32>::FOO, S::<u32>::FOO)); 29 | ^^^^^^^^^^^^^ 30 31error: aborting due to 2 previous errors 32 33For more information about this error, try `rustc --explain E0080`.