From 69c5efcd55dacdc27a25698ba6bcb32d96175668 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Wed, 22 Mar 2023 12:51:58 -0700 Subject: [PATCH] Improve error message on missing ';' between statements --- src/stmt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stmt.rs b/src/stmt.rs index 156801ffa1..55b9c8bc8a 100644 --- a/src/stmt.rs +++ b/src/stmt.rs @@ -153,7 +153,7 @@ pub(crate) mod parsing { if input.is_empty() { break; } else if requires_semicolon { - return Err(input.error("unexpected token")); + return Err(input.error("unexpected token, expected `;`")); } } Ok(stmts)