fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
486 B15 linesraw
1error[E0080]: evaluation of `PrintName::<i32>::VOID` failed
2  --> $DIR/erroneous-const2.rs:6:22
3   |
4LL |     const VOID: () = [()][2];
5   |                      ^^^^^^^ index out of bounds: the length is 1 but the index is 2
6
7note: erroneous constant encountered
8  --> $DIR/erroneous-const2.rs:13:9
9   |
10LL |         PrintName::<i32>::VOID;
11   |         ^^^^^^^^^^^^^^^^^^^^^^
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0080`.