error: add error kind for a type mismatch when writing tuples

This commit is contained in:
Matt Bilker
2018-07-08 18:40:44 -04:00
parent b2ff5f83fc
commit 7fab90beb2

View File

@@ -98,6 +98,9 @@ pub enum KbinErrorKind {
#[fail(display = "Missing type hint where one is required")]
MissingTypeHint,
#[fail(display = "Type mismatch, expected: {}, found: {}", _0, _1)]
TypeMismatch(KbinType, KbinType),
}
impl fmt::Display for KbinError {