fix: Fix parser getting stuck for bad asm expressions

This commit is contained in:
Lukas Wirth 2024-12-06 05:53:44 +01:00
parent 2fd06545a6
commit 4a24e729b0
4 changed files with 71 additions and 4 deletions

View file

@ -704,6 +704,8 @@ mod err {
run_and_expect_errors("test_data/parser/inline/err/async_without_semicolon.rs");
}
#[test]
fn bad_asm_expr() { run_and_expect_errors("test_data/parser/inline/err/bad_asm_expr.rs"); }
#[test]
fn comma_after_functional_update_syntax() {
run_and_expect_errors(
"test_data/parser/inline/err/comma_after_functional_update_syntax.rs",