mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-28 01:01:53 +03:00
forgot to push new error with previous commit
This commit is contained in:
parent
8c996fb15d
commit
62e68f42da
@ -72,6 +72,10 @@ impl SyntaxError {
|
||||
)
|
||||
}
|
||||
|
||||
pub fn invalid_ident_name(got: &str, expected: &str, span: &Span) -> Self {
|
||||
Self::new_from_span(format!("expected identifier {} -- got '{}'", expected, got), span)
|
||||
}
|
||||
|
||||
pub fn unexpected_ident(got: &str, expected: &[&str], span: &Span) -> Self {
|
||||
Self::new_from_span(
|
||||
format!(
|
||||
|
Loading…
Reference in New Issue
Block a user