aboutsummaryrefslogtreecommitdiff
path: root/src/type/display.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/type/display.rs')
-rw-r--r--src/type/display.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/type/display.rs b/src/type/display.rs
index fe54941..4a9b54a 100644
--- a/src/type/display.rs
+++ b/src/type/display.rs
@@ -103,6 +103,13 @@ impl fmt::Display for TypeError {
argtype, generictype
)
},
+ LetAsOperator(letexp) => {
+ write!(
+ f,
+ "let used as operator instead of generating an operator: maybe try '({} ...)' instead",
+ letexp
+ )
+ },
OtherError => write!(f, "uncategorized error"),
}
}