diff --git a/compiler/parser/src/parser/file.rs b/compiler/parser/src/parser/file.rs index 4d97d4185a..d611a505b8 100644 --- a/compiler/parser/src/parser/file.rs +++ b/compiler/parser/src/parser/file.rs @@ -116,7 +116,7 @@ impl ParserContext<'_> { Some(ident.name) } else { let token = p.expect_any()?; - p.emit_err(ParserError::unexpected_str(&token.token, "ident or int", &token.span)); + p.emit_err(ParserError::unexpected_str(&token.token, "ident", &token.span)); None }) })?; diff --git a/tests/expectations/parser/parser/functions/annotated_arg_not_ident_int.leo.out b/tests/expectations/parser/parser/functions/annotated_arg_not_ident_int.leo.out index 34585e8f24..4c32e5ad4b 100644 --- a/tests/expectations/parser/parser/functions/annotated_arg_not_ident_int.leo.out +++ b/tests/expectations/parser/parser/functions/annotated_arg_not_ident_int.leo.out @@ -2,4 +2,4 @@ namespace: Parse expectation: Fail outputs: - - "Error [EPAR0370009]: unexpected string: expected 'ident or int', got '?'\n --> test:3:6\n |\n 3 | @foo(?, bar, ?)\n | ^\nError [EPAR0370009]: unexpected string: expected 'ident or int', got '?'\n --> test:3:14\n |\n 3 | @foo(?, bar, ?)\n | ^\nError [EPAR0370017]: \"@context(...)\" is deprecated. Did you mean @test annotation?\n --> test:8:2\n |\n 8 | @context // recovery witness\n | ^^^^^^^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '?'\n --> test:3:6\n |\n 3 | @foo(?, bar, ?)\n | ^\nError [EPAR0370009]: unexpected string: expected 'ident', got '?'\n --> test:3:14\n |\n 3 | @foo(?, bar, ?)\n | ^\nError [EPAR0370017]: \"@context(...)\" is deprecated. Did you mean @test annotation?\n --> test:8:2\n |\n 8 | @context // recovery witness\n | ^^^^^^^"