File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ error[E0080]: evaluation of `main::{constant#3}` failed
44LL | const { &ARR[idx4()] }; // Ok, let rustc handle const contexts.
55 | ^^^^^^^^^^^ index out of bounds: the length is 2 but the index is 4
66
7- error[E0080] : erroneous constant used
7+ note : erroneous constant used
88 --> $DIR/indexing_slicing_index.rs:31:5
99 |
1010LL | const { &ARR[idx4()] }; // Ok, let rustc handle const contexts.
11- | ^^^^^^^^^^^^^^^^^^^^^^ referenced constant has errors
11+ | ^^^^^^^^^^^^^^^^^^^^^^
1212
1313error: indexing may panic
1414 --> $DIR/indexing_slicing_index.rs:22:5
@@ -65,6 +65,6 @@ error[E0080]: evaluation of constant value failed
6565LL | const REF_ERR: &i32 = &ARR[idx4()]; // Ok, let rustc handle const contexts.
6666 | ^^^^^^^^^^^ index out of bounds: the length is 2 but the index is 4
6767
68- error: aborting due to 9 previous errors
68+ error: aborting due to 8 previous errors
6969
7070For more information about this error, try `rustc --explain E0080`.
You can’t perform that action at this time.
0 commit comments