1// SPDX-License-Identifier: MIT 2 3use crate::pos::Pos; 4 5/// A parse error produced by the streaming parser. 6#[derive(Debug, Clone, PartialEq, Eq, thiserror::Error)] 7#[error("parse error at {pos:?}: {message}")] 8pub struct Error { 9 pub pos: Pos, 10 pub message: String, 11}