@@ -12,24 +12,60 @@ error: expected `M::S` but found `M::R`
12
12
9 │ (S { g }, R { f }) = (R{ f: 0 }, R{ f: 1 });
13
13
│ ^^^^^^^
14
14
15
+ error: unable to infer type: `?1`
16
+ ┌─ tests/checking/typing/assign_wrong_type.move:14:13
17
+ │
18
+ 14 │ let b;
19
+ │ ^
20
+
21
+ error: unable to infer type: `?2`
22
+ ┌─ tests/checking/typing/assign_wrong_type.move:15:13
23
+ │
24
+ 15 │ let f;
25
+ │ ^
26
+
15
27
error: expected `()` but found `integer` (from assignment or declaration context)
16
28
┌─ tests/checking/typing/assign_wrong_type.move:17:9
17
29
│
18
30
17 │ () = 0;
19
31
│ ^^
20
32
33
+ error: unable to infer type: `?6`
34
+ ┌─ tests/checking/typing/assign_wrong_type.move:17:14
35
+ │
36
+ 17 │ () = 0;
37
+ │ ^
38
+
21
39
error: expected 4 item(s), found 3
22
40
┌─ tests/checking/typing/assign_wrong_type.move:18:9
23
41
│
24
42
18 │ (x, b, R{f}) = (0, false, R{f: 0}, R{f: 0});
25
43
│ ^^^^^^^^^^^^
26
44
45
+ error: unable to infer type: `?15`
46
+ ┌─ tests/checking/typing/assign_wrong_type.move:18:9
47
+ │
48
+ 18 │ (x, b, R{f}) = (0, false, R{f: 0}, R{f: 0});
49
+ │ ^^^^^^^^^^^^
50
+
27
51
error: expected 2 item(s), found 3
28
52
┌─ tests/checking/typing/assign_wrong_type.move:19:9
29
53
│
30
54
19 │ (x, b, R{f}) = (0, false);
31
55
│ ^^^^^^^^^^^^
32
56
57
+ error: unable to infer type: `?21`
58
+ ┌─ tests/checking/typing/assign_wrong_type.move:19:9
59
+ │
60
+ 19 │ (x, b, R{f}) = (0, false);
61
+ │ ^^^^^^^^^^^^
62
+
63
+ error: unable to infer type: `?1`
64
+ ┌─ tests/checking/typing/assign_wrong_type.move:24:17
65
+ │
66
+ 24 │ let b = 0;
67
+ │ ^
68
+
33
69
error: expected `bool` but found `integer` (from assignment or declaration context)
34
70
┌─ tests/checking/typing/assign_wrong_type.move:27:10
35
71
│
@@ -53,3 +89,9 @@ error: expected `M::S` but found `M::R` (from assignment or declaration context)
53
89
│
54
90
27 │ (x, b, R{f}, r) = (0, false, R{f: 0}, R{f: 0});
55
91
│ ^
92
+
93
+ error: unable to infer type: `?7`
94
+ ┌─ tests/checking/typing/assign_wrong_type.move:27:28
95
+ │
96
+ 27 │ (x, b, R{f}, r) = (0, false, R{f: 0}, R{f: 0});
97
+ │ ^
0 commit comments