7 lines
189 B
Rust
7 lines
189 B
Rust
// xfail-stage0
|
|
//error-pattern:is an expr, expected an identifier
|
|
fn main() {
|
|
#macro([#mylambda(x, body), {fn f(int x) -> int {ret body}; f}]);
|
|
|
|
assert(#mylambda(y*1, y*2)(8) == 16);
|
|
} |