Skip to content

Commit d3a7d1c

Browse files
aibaarsVeykril
andauthored
Add test for closure_binder
Co-authored-by: Lukas Wirth <[email protected]>
1 parent 47d9534 commit d3a7d1c

File tree

1 file changed

+2
-0
lines changed
  • src/tools/rust-analyzer/crates/parser/src/grammar/expressions

1 file changed

+2
-0
lines changed

src/tools/rust-analyzer/crates/parser/src/grammar/expressions/atom.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,8 @@ fn closure_expr(p: &mut Parser<'_>) -> CompletedMarker {
562562

563563
let m = p.start();
564564

565+
// test closure_binder
566+
// fn main() { for<'a> || (); }
565567
if p.at(T![for]) {
566568
let b = p.start();
567569
types::for_binder(p);

0 commit comments

Comments
 (0)