]> git.proxmox.com Git - rustc.git/blob - tests/ui/consts/const-eval/erroneous-const.stderr
New upstream version 1.74.1+dfsg1
[rustc.git] / tests / ui / consts / const-eval / erroneous-const.stderr
1 error[E0080]: evaluation of `PrintName::<i32>::VOID` failed
2 --> $DIR/erroneous-const.rs:6:22
3 |
4 LL | const VOID: () = [()][2];
5 | ^^^^^^^ index out of bounds: the length is 1 but the index is 2
6
7 note: erroneous constant encountered
8 --> $DIR/erroneous-const.rs:13:13
9 |
10 LL | PrintName::<T>::VOID;
11 | ^^^^^^^^^^^^^^^^^^^^
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0080`.