diff --git a/libconlang/src/lexer.rs b/libconlang/src/lexer.rs index acaa726..5193539 100644 --- a/libconlang/src/lexer.rs +++ b/libconlang/src/lexer.rs @@ -515,6 +515,7 @@ pub mod error { })* } } + impl std::error::Error for Error {} impl Display for Error { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "{}:{}: {}", self.line, self.col, self.reason)