File tree 1 file changed +3
-3
lines changed 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
4
4
LL | const { &ARR[idx4()] }; // Ok, let rustc handle const contexts.
5
5
| ^^^^^^^^^^^ index out of bounds: the length is 2 but the index is 4
6
6
7
- error[E0080] : erroneous constant used
7
+ note : erroneous constant used
8
8
--> $DIR/indexing_slicing_index.rs:31:5
9
9
|
10
10
LL | const { &ARR[idx4()] }; // Ok, let rustc handle const contexts.
11
- | ^^^^^^^^^^^^^^^^^^^^^^ referenced constant has errors
11
+ | ^^^^^^^^^^^^^^^^^^^^^^
12
12
13
13
error: indexing may panic
14
14
--> $DIR/indexing_slicing_index.rs:22:5
@@ -65,6 +65,6 @@ error[E0080]: evaluation of constant value failed
65
65
LL | const REF_ERR: &i32 = &ARR[idx4()]; // Ok, let rustc handle const contexts.
66
66
| ^^^^^^^^^^^ index out of bounds: the length is 2 but the index is 4
67
67
68
- error: aborting due to 9 previous errors
68
+ error: aborting due to 8 previous errors
69
69
70
70
For more information about this error, try `rustc --explain E0080`.
You can’t perform that action at this time.
0 commit comments