Skip to content

Commit 2bf87f3

Browse files
committed
cleanup and dedupe CTFE and Miri error reporting
1 parent 8a2d0f2 commit 2bf87f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/ui/indexing_slicing_index.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ error[E0080]: evaluation of `main::{constant#3}` failed
44
LL | 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
|
1010
LL | const { &ARR[idx4()] }; // Ok, let rustc handle const contexts.
11-
| ^^^^^^^^^^^^^^^^^^^^^^ referenced constant has errors
11+
| ^^^^^^^^^^^^^^^^^^^^^^
1212

1313
error: indexing may panic
1414
--> $DIR/indexing_slicing_index.rs:22:5
@@ -65,6 +65,6 @@ error[E0080]: evaluation of constant value failed
6565
LL | 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

7070
For more information about this error, try `rustc --explain E0080`.

0 commit comments

Comments
 (0)