rust/src/test/compile-fail/macro-2.rs
2011-07-22 16:53:43 -07:00

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);
}