A slightly clearer diagnostic when misusing

This commit is contained in:
Ryan Levick 2020-12-04 11:33:30 +01:00
parent 1f95c91c88
commit 823f64532c

View File

@ -264,7 +264,7 @@ impl TokenType {
TokenType::Ident => "identifier".to_string(),
TokenType::Path => "path".to_string(),
TokenType::Type => "type".to_string(),
TokenType::Const => "const".to_string(),
TokenType::Const => "a const expression".to_string(),
}
}
}