aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors
diff options
context:
space:
mode:
authorVeikka Tuominen <git@vexu.eu>2022-07-06 12:17:04 +0300
committerVeikka Tuominen <git@vexu.eu>2022-07-07 10:50:06 +0300
commit27ee4141592c7a9d77a2d73f5fa6a3c6262ac7fc (patch)
tree9077c3617875ad8511d3da525d5a0554ecbb2c98 /test/cases/compile_errors
parent2ca752ea1ad4afb9d510687ae097c709668316b9 (diff)
downloadzig-27ee4141592c7a9d77a2d73f5fa6a3c6262ac7fc.tar.gz
zig-27ee4141592c7a9d77a2d73f5fa6a3c6262ac7fc.zip
Sema: improve slice source locations
Diffstat (limited to 'test/cases/compile_errors')
-rw-r--r--test/cases/compile_errors/stage2/out_of_bounds_index.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/cases/compile_errors/stage2/out_of_bounds_index.zig b/test/cases/compile_errors/stage2/out_of_bounds_index.zig
index ea9bc6521d..3f5b71d530 100644
--- a/test/cases/compile_errors/stage2/out_of_bounds_index.zig
+++ b/test/cases/compile_errors/stage2/out_of_bounds_index.zig
@@ -23,7 +23,7 @@ comptime {
// error
// target=native
//
-// :4:26: error: end index 6 out of bounds for slice of length 4 +1 (sentinel)
-// :9:22: error: end index 6 out of bounds for array of length 4 +1 (sentinel)
-// :14:22: error: end index 5 out of bounds for array of length 4
-// :19:22: error: start index 3 is larger than end index 2
+// :4:30: error: end index 6 out of bounds for slice of length 4 +1 (sentinel)
+// :9:26: error: end index 6 out of bounds for array of length 4 +1 (sentinel)
+// :14:26: error: end index 5 out of bounds for array of length 4
+// :19:23: error: start index 3 is larger than end index 2