raz / test / msg / PtrPointer.err

9 lines · 455 B · raw · history · last change 264716cb

1conform/err/PtrPointer.raz:7:21: error: PTR needs a slice or an array, found ^U8
2 7 | q := SYSTEM.PTR(p);
3 | ^
4help: p is a pointer already, which is what PTR gives of a slice or an array
5conform/err/PtrPointer.raz:8:21: error: PTR needs a slice or an array, found ^[4]U8
6 8 | q := SYSTEM.PTR(pa);
7 | ^^
8help: write PTR(pa^) for the address of the array's first element, a ^U8
9raz: 2 errors