mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-28 10:39:45 +00:00
Add test for closure_binder
Co-authored-by: Lukas Wirth <me@lukaswirth.dev>
This commit is contained in:
parent
fb16d3b7f8
commit
7f7079f2bf
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue