Skip to content

Instantly share code, notes, and snippets.

@badboy
Last active February 18, 2020 13:09
Show Gist options
  • Save badboy/bd0a959663cc3f87b9fc84c4bbdc9011 to your computer and use it in GitHub Desktop.
Save badboy/bd0a959663cc3f87b9fc84c4bbdc9011 to your computer and use it in GitHub Desktop.
error[E0308]: mismatched types
--> src/main.rs:12:48
|
12 | let mut goal = bind(("x", "y", "z"), move |(x, y)| {
| ^^^^^^ expected a tuple with 3 elements, found one with 2 elements
|
= note: expected tuple `(Variable, Variable, Variable)`
found tuple `(_, _)`
let mut goal = bind(("x", "y", "z"), move |(x, y, z)| {
both(
both(
equal(x, "rec"),
equal(z, "recurse")
),
append(x, y, z)
)
});
let states = goal(State::empty());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment