1 2 3 4 5 6 7 8 9 10 11 12
//! Error generated by the parser //! that it is caused by a syntax //! error. //! //! Useful to print a compiler message. use crate::proc_macro::TokenTree; #[derive(Debug)] pub struct SyntaxError { pub tok: TokenTree, pub msg: String, }