Skip to content

Commit 823f645

Browse files
committed
A slightly clearer diagnostic when misusing
1 parent 1f95c91 commit 823f645

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_parse/src/parser

1 file changed

+1
-1
lines changed

compiler/rustc_parse/src/parser/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ impl TokenType {
264264
TokenType::Ident => "identifier".to_string(),
265265
TokenType::Path => "path".to_string(),
266266
TokenType::Type => "type".to_string(),
267-
TokenType::Const => "const".to_string(),
267+
TokenType::Const => "a const expression".to_string(),
268268
}
269269
}
270270
}

0 commit comments

Comments
 (0)