A slightly clearer diagnostic when misusing
This commit is contained in:
parent
1f95c91c88
commit
823f64532c
1 changed files with 1 additions and 1 deletions
|
@ -264,7 +264,7 @@ impl TokenType {
|
||||||
TokenType::Ident => "identifier".to_string(),
|
TokenType::Ident => "identifier".to_string(),
|
||||||
TokenType::Path => "path".to_string(),
|
TokenType::Path => "path".to_string(),
|
||||||
TokenType::Type => "type".to_string(),
|
TokenType::Type => "type".to_string(),
|
||||||
TokenType::Const => "const".to_string(),
|
TokenType::Const => "a const expression".to_string(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue