mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Rust: add ForBinder case in ClosureExpr and accept test changes
This commit is contained in:
@@ -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);
|
||||
};
|
||||
```
|
||||
"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user