tests: fix compiler_errors_test.v

pull/5983/head
Alexander Medvednikov 2020-07-25 22:20:07 +02:00
parent 6fcc6cdc75
commit 6796b93abd
2 changed files with 10 additions and 10 deletions

View File

@ -1,5 +1,5 @@
vlib/v/checker/tests/unsafe_pointer_arithmetic_should_be_checked.v:4:6: error: pointer arithmetic is only allowed in `unsafe` blocks vlib/v/checker/tests/unsafe_pointer_arithmetic_should_be_checked.v:4:6: error: pointer arithmetic is only allowed in `unsafe` blocks
2 | v := 5 2 | mut v := 5
3 | mut p := &v 3 | mut p := &v
4 | p++ 4 | p++
| ~~ | ~~

View File

@ -1,5 +1,5 @@
vlib/v/checker/tests/unsafe_required.v:4:6: error: pointer arithmetic is only allowed in `unsafe` blocks vlib/v/checker/tests/unsafe_required.v:4:6: error: pointer arithmetic is only allowed in `unsafe` blocks
2 | v := 5 2 | mut v := 5
3 | mut p := &v 3 | mut p := &v
4 | p++ 4 | p++
| ~~ | ~~