raz / test / msg / PtrAsSlice.err

5 lines · 236 B · raw · history · last change 264716cb

1conform/err/PtrAsSlice.raz:6:10: error: can't use ^U8 as []U8
2 6 | s := SYSTEM.PTR(a);
3 | ^^^^^^^^^^^^^
4help: a pointer has no length: p[0..n], for a pointer p, is the slice of the n elements it starts
5raz: 1 error