2022-09-21 06:05:20 -05:00
|
|
|
error[E0080]: evaluation of `PrintName::<i32>::VOID` failed
|
2020-08-10 03:58:53 -05:00
|
|
|
--> $DIR/erroneous-const.rs:6:22
|
|
|
|
|
|
|
|
|
LL | const VOID: () = [()][2];
|
2020-09-15 14:34:50 -05:00
|
|
|
| ^^^^^^^ index out of bounds: the length is 1 but the index is 2
|
2020-08-10 03:58:53 -05:00
|
|
|
|
2022-11-15 05:06:20 -06:00
|
|
|
note: erroneous constant used
|
2023-06-12 03:55:36 -05:00
|
|
|
--> $DIR/erroneous-const.rs:13:13
|
2020-08-11 07:54:02 -05:00
|
|
|
|
|
2023-06-12 03:55:36 -05:00
|
|
|
LL | PrintName::<T>::VOID;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
2020-08-10 03:58:53 -05:00
|
|
|
|
2022-11-15 05:06:20 -06:00
|
|
|
error: aborting due to previous error
|
2020-08-10 03:58:53 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0080`.
|