#[derive(Debug)]
pub struct Error(());
impl Error {
pub(crate) fn new() -> Self {
Self(())
}
}
impl std::fmt::Display for Error {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
write!(f, "syntax error")
}
}
impl std::error::Error for Error {}