raz / test / msg / FillInto.err

30 lines · 1.3 KiB · raw · history · last change e19ed1d8

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