1 2 3 4 5 6 7 8 9 10 11 12
use std::fmt; /// A marker trait... for now! /// /// Marks a type as, well, an error type. /// /// TODO: constrain that conversion to `NodeKind::Error` is enforced to be possible pub trait SyntaxError where Self: fmt::Debug + Clone + PartialEq + Eq, { }