mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
tests: fix compiler_errors_test.v
This commit is contained in:
@ -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++
|
||||||
| ~~
|
| ~~
|
||||||
|
@ -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++
|
||||||
| ~~
|
| ~~
|
||||||
|
Reference in New Issue
Block a user