about summary refs log tree commit diff
diff options
context:
space:
mode:
authorArthur Baars <aibaars@github.com>2025-05-30 22:58:13 +0200
committerGitHub <noreply@github.com>2025-05-30 22:58:13 +0200
commitd3a7d1c447b0d3fadc8114f52a77169304d1b814 (patch)
treea371dc5c0a4627ec640717a7d409b37e02eb4e5e
parent47d953487850898da0261c78083ee6c9e3aac61d (diff)
downloadrust-d3a7d1c447b0d3fadc8114f52a77169304d1b814.tar.gz
rust-d3a7d1c447b0d3fadc8114f52a77169304d1b814.zip
Add test for closure_binder
Co-authored-by: Lukas Wirth <me@lukaswirth.dev>
-rw-r--r--src/tools/rust-analyzer/crates/parser/src/grammar/expressions/atom.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/rust-analyzer/crates/parser/src/grammar/expressions/atom.rs b/src/tools/rust-analyzer/crates/parser/src/grammar/expressions/atom.rs
index 68b0c8f5c73..8ed0fc6729f 100644
--- a/src/tools/rust-analyzer/crates/parser/src/grammar/expressions/atom.rs
+++ b/src/tools/rust-analyzer/crates/parser/src/grammar/expressions/atom.rs
@@ -562,6 +562,8 @@ fn closure_expr(p: &mut Parser<'_>) -> CompletedMarker {
 
     let m = p.start();
 
+    // test closure_binder
+    // fn main() { for<'a> || (); }
     if p.at(T![for]) {
         let b = p.start();
         types::for_binder(p);