fork/rust

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

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

master
489 B15 linesraw
1error[E0080]: evaluation of `PrintName::<i32>::VOID` failed
2  --> $DIR/erroneous-const.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-const.rs:13:13
9   |
10LL |             PrintName::<T>::VOID;
11   |             ^^^^^^^^^^^^^^^^^^^^
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0080`.