]> git.proxmox.com Git - rustc.git/blame - tests/ui/consts/const-eval/erroneous-const2.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / consts / const-eval / erroneous-const2.stderr
CommitLineData
2b03887a 1error[E0080]: evaluation of `PrintName::<i32>::VOID` failed
17df50a5
XL
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
17df50a5 6
487cf647 7note: erroneous constant used
2b03887a 8 --> $DIR/erroneous-const2.rs:13:17
17df50a5
XL
9 |
10LL | let _ = PrintName::<i32>::VOID;
487cf647 11 | ^^^^^^^^^^^^^^^^^^^^^^
17df50a5 12
487cf647 13error: aborting due to previous error
17df50a5
XL
14
15For more information about this error, try `rustc --explain E0080`.