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