From cf2dff2b1e3fa55fa5415d524200070d0d7aacfe Mon Sep 17 00:00:00 2001 From: Albert Larsan <74931857+albertlarsan68@users.noreply.github.com> Date: Thu, 5 Jan 2023 09:13:28 +0100 Subject: Move /src/test to /tests --- tests/ui/array-slice-vec/array_const_index-1.stderr | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/ui/array-slice-vec/array_const_index-1.stderr (limited to 'tests/ui/array-slice-vec/array_const_index-1.stderr') diff --git a/tests/ui/array-slice-vec/array_const_index-1.stderr b/tests/ui/array-slice-vec/array_const_index-1.stderr new file mode 100644 index 00000000000..591db268a99 --- /dev/null +++ b/tests/ui/array-slice-vec/array_const_index-1.stderr @@ -0,0 +1,9 @@ +error[E0080]: evaluation of constant value failed + --> $DIR/array_const_index-1.rs:2:16 + | +LL | const B: i32 = A[1]; + | ^^^^ index out of bounds: the length is 0 but the index is 1 + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0080`. -- cgit 1.4.1-3-g733a5