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