Clarify what was missing in binding pattern errors (#4314)

Co-authored-by: Josh L <josh11b@users.noreply.github.com>
This commit is contained in:
josh11b
2024-09-14 03:31:43 +00:00
committed by GitHub
co-authored by Josh L
parent c029931910
commit 7611aac355
16 changed files with 24 additions and 22 deletions
@@ -8,7 +8,7 @@
// TIP: To dump output, run:
// TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/parse/testdata/function/declaration/fail_with_identifier_as_param.carbon
// CHECK:STDERR: fail_with_identifier_as_param.carbon:[[@LINE+3]]:11: ERROR: Expected binding pattern.
// CHECK:STDERR: fail_with_identifier_as_param.carbon:[[@LINE+3]]:11: ERROR: Expected `:` or `:!` in binding pattern.
// CHECK:STDERR: fn foo(bar);
// CHECK:STDERR: ^
fn foo(bar);