diff options
| author | Veikka Tuominen <git@vexu.eu> | 2022-07-06 12:17:04 +0300 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2022-07-07 10:50:06 +0300 |
| commit | 27ee4141592c7a9d77a2d73f5fa6a3c6262ac7fc (patch) | |
| tree | 9077c3617875ad8511d3da525d5a0554ecbb2c98 /test/cases/compile_errors | |
| parent | 2ca752ea1ad4afb9d510687ae097c709668316b9 (diff) | |
| download | zig-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.zig | 8 |
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 |
