about summary refs log tree commit diff
diff options
context:
space:
mode:
authorArthur Baars <aibaars@github.com>2025-05-30 21:04:19 +0000
committerArthur Baars <aibaars@github.com>2025-05-30 21:05:12 +0000
commitbd71e6c2e9cfca85f434433b3bdfc14baed9ab83 (patch)
tree47f6fd408da8e0d1ebdc3b2ff8c51e68082f06e2
parentd3a7d1c447b0d3fadc8114f52a77169304d1b814 (diff)
downloadrust-bd71e6c2e9cfca85f434433b3bdfc14baed9ab83.tar.gz
rust-bd71e6c2e9cfca85f434433b3bdfc14baed9ab83.zip
Run 'cargo codegen' to update tests
-rw-r--r--src/tools/rust-analyzer/crates/parser/test_data/generated/runner.rs4
-rw-r--r--src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/closure_binder.rs1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/tools/rust-analyzer/crates/parser/test_data/generated/runner.rs b/src/tools/rust-analyzer/crates/parser/test_data/generated/runner.rs
index 030d8e0f04d..537f6df05b9 100644
--- a/src/tools/rust-analyzer/crates/parser/test_data/generated/runner.rs
+++ b/src/tools/rust-analyzer/crates/parser/test_data/generated/runner.rs
@@ -83,6 +83,10 @@ mod ok {
     #[test]
     fn cast_expr() { run_and_expect_no_errors("test_data/parser/inline/ok/cast_expr.rs"); }
     #[test]
+    fn closure_binder() {
+        run_and_expect_no_errors("test_data/parser/inline/ok/closure_binder.rs");
+    }
+    #[test]
     fn closure_body_underscore_assignment() {
         run_and_expect_no_errors(
             "test_data/parser/inline/ok/closure_body_underscore_assignment.rs",
diff --git a/src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/closure_binder.rs b/src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/closure_binder.rs
new file mode 100644
index 00000000000..a6d8aafb08a
--- /dev/null
+++ b/src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/closure_binder.rs
@@ -0,0 +1 @@
+fn main() { for<'a> || (); }