| 1 | conform/err/BytesFrame.raz:14:12: error: can't return a slice of the procedure's own frame |
| 2 | 14 | return BYTES(h); (* the procedure's own variable *) |
| 3 | | ^^^^^^^^ |
| 4 | help: it is gone once the procedure returns: take the array as a var parameter, or fill a buffer the caller gives |
| 5 | conform/err/BytesFrame.raz:20:12: error: can't return a slice of the procedure's own frame |
| 6 | 20 | return BYTES(h.count); (* a field of one *) |
| 7 | | ^^^^^^^^^^^^^^ |
| 8 | help: it is gone once the procedure returns: take the array as a var parameter, or fill a buffer the caller gives |
| 9 | conform/err/BytesFrame.raz:26:12: error: can't return a slice of the procedure's own frame |
| 10 | 26 | return BYTES(a[i]), i; (* an element of one, one of several results *) |
| 11 | | ^^^^^^^^^^^ |
| 12 | help: it is gone once the procedure returns: take the array as a var parameter, or fill a buffer the caller gives |
| 13 | conform/err/BytesFrame.raz:31:12: error: can't return a slice of the procedure's own frame |
| 14 | 31 | return BYTES(h); (* the procedure's copy *) |
| 15 | | ^^^^^^^^ |
| 16 | help: it is gone once the procedure returns: take the array as a var parameter, or fill a buffer the caller gives |
| 17 | conform/err/BytesFrame.raz:38:12: error: can't return a slice of the procedure's own frame |
| 18 | 38 | return BYTES(n); (* a local that may live in a register *) |
| 19 | | ^^^^^^^^ |
| 20 | help: it is gone once the procedure returns: take the array as a var parameter, or fill a buffer the caller gives |
| 21 | conform/err/BytesFrame.raz:44:12: error: can't return a slice of the procedure's own frame |
| 22 | 44 | return BYTES(a[1..3]); (* a slice of a local array *) |
| 23 | | ^^^^^^^^^^^^^^ |
| 24 | help: it is gone once the procedure returns: take the array as a var parameter, or fill a buffer the caller gives |
| 25 | raz: 6 errors |