@@ -14,3 +14,66 @@ note: required by a bound in `check_inputs`
14
14
|
15
15
8 | out(a) :- in1(a, b), in2(b)
16
16
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `check_inputs`
17
+
18
+ error[E0271]: expected `impl Iterator<Item = ((&str,), ())>` to be an iterator that yields `(({integer},), _)`, but it yields `((&str,), ())`
19
+ --> tests/compile-fail/datalog_join_badtypes.rs:8:9
20
+ |
21
+ 8 | out(a) :- in1(a, b), in2(b)
22
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `(({integer},), _)`, found `((&str,), ())`
23
+ |
24
+ = note: expected tuple `(({integer},), _)`
25
+ found tuple `((&str,), ())`
26
+ note: required by a bound in `check_inputs`
27
+ --> tests/compile-fail/datalog_join_badtypes.rs:8:9
28
+ |
29
+ 8 | out(a) :- in1(a, b), in2(b)
30
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `check_inputs`
31
+
32
+ error[E0271]: expected `impl Iterator<Item = ((&str,), ())>` to be an iterator that yields `(({integer},), ())`, but it yields `((&str,), ())`
33
+ --> tests/compile-fail/datalog_join_badtypes.rs:4:18
34
+ |
35
+ 4 | let mut df = datalog!(r#"
36
+ | __________________^
37
+ 5 | | .input in1 `source_iter(0..10) -> map(|x| (x, x))`
38
+ 6 | | .input in2 `source_iter(0..10) -> map(|_| ("string",))`
39
+ 7 | | .output out `null::<(u32,)>()`
40
+ 8 | | out(a) :- in1(a, b), in2(b)
41
+ 9 | | "#);
42
+ | |_______^ expected `(({integer},), ())`, found `((&str,), ())`
43
+ |
44
+ = note: expected tuple `(({integer},), ())`
45
+ found tuple `((&str,), ())`
46
+ note: required by a bound in `check_inputs`
47
+ --> tests/compile-fail/datalog_join_badtypes.rs:8:9
48
+ |
49
+ 8 | out(a) :- in1(a, b), in2(b)
50
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `check_inputs`
51
+ = note: this error originates in the macro `datalog` (in Nightly builds, run with -Z macro-backtrace for more info)
52
+
53
+ error[E0271]: expected `impl Iterator<Item = ((&str,), ())>` to be an iterator that yields `(({integer},), ())`, but it yields `((&str,), ())`
54
+ --> tests/compile-fail/datalog_join_badtypes.rs:7:17
55
+ |
56
+ 7 | .output out `null::<(u32,)>()`
57
+ | ^^^ expected `(({integer},), ())`, found `((&str,), ())`
58
+ |
59
+ = note: expected tuple `(({integer},), ())`
60
+ found tuple `((&str,), ())`
61
+ note: required by a bound in `check_inputs`
62
+ --> tests/compile-fail/datalog_join_badtypes.rs:8:9
63
+ |
64
+ 8 | out(a) :- in1(a, b), in2(b)
65
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `check_inputs`
66
+
67
+ error[E0271]: expected `impl Iterator<Item = ((&str,), ())>` to be an iterator that yields `(({integer},), ())`, but it yields `((&str,), ())`
68
+ --> tests/compile-fail/datalog_join_badtypes.rs:7:17
69
+ |
70
+ 7 | .output out `null::<(u32,)>()`
71
+ | ^^^^^^^^^^^^^^^^^^^^^ expected `(({integer},), ())`, found `((&str,), ())`
72
+ |
73
+ = note: expected tuple `(({integer},), ())`
74
+ found tuple `((&str,), ())`
75
+ note: required by a bound in `check_inputs`
76
+ --> tests/compile-fail/datalog_join_badtypes.rs:8:9
77
+ |
78
+ 8 | out(a) :- in1(a, b), in2(b)
79
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `check_inputs`
0 commit comments