| 1 | conform/err/FillInto.raz:6:10: error: a is only read here, and can't be changed |
| 2 | 6 | FILL(a, 0); |
| 3 | | ^ |
| 4 | help: a const parameter, a constant, and the names a match gives their fields, are only read: take a var parameter to change it |
| 5 | conform/err/FillInto.raz:11:10: error: FILL fills an array variable or a slice, found a string |
| 6 | 11 | FILL("abc", 0); |
| 7 | | ^^^^^ |
| 8 | conform/err/FillInto.raz:12:10: error: FILL fills an array variable or a slice, found I64 |
| 9 | 12 | FILL(x, 0); |
| 10 | | ^ |
| 11 | conform/err/FillInto.raz:13:10: error: FILL fills an array variable or a slice, found [3]I64 |
| 12 | 13 | FILL(A, 0); |
| 13 | | ^ |
| 14 | conform/err/FillInto.raz:14:10: error: Owner.a is Owner's, and can't be changed outside it |
| 15 | 14 | FILL(Owner.a, 0); |
| 16 | | ^^^^^^^ |
| 17 | conform/err/FillInto.raz:15:13: error: can't use a string as I64 |
| 18 | 15 | FILL(a, "abc"); |
| 19 | | ^^^^^ |
| 20 | conform/err/FillInto.raz:16:13: error: can't use a real constant as I64 |
| 21 | 16 | FILL(a, 1.5); |
| 22 | | ^^^ |
| 23 | conform/err/FillInto.raz:17:13: error: 256 doesn't fit U8 |
| 24 | 17 | FILL(s, 256); |
| 25 | | ^^^ |
| 26 | conform/err/FillInto.raz:18:13: error: can't use U8 as I64 |
| 27 | 18 | FILL(a, U8(1)); |
| 28 | | ^^^^^ |
| 29 | help: U8 widens to I64 only as written, I64(U8(1)) |
| 30 | raz: 9 errors |