Rust: add ForBinder case in ClosureExpr and accept test changes

This commit is contained in:
Paolo Tranquilli
2025-08-12 17:29:11 +02:00
parent fbc81cbb18
commit 92e94695e7
14 changed files with 66 additions and 38 deletions

View File

@@ -547,10 +547,13 @@ class _:
|x| x + 1;
move |x: i32| -> i32 { x + 1 };
async |x: i32, y| x + y;
#[coroutine]
#[coroutine]
|x| yield x;
#[coroutine]
static |x| yield x;
#[coroutine]
static |x| yield x;
for<T: std::fmt::Debug> |x: T| {
println!("{:?}", x);
};
```
"""