rust/src/test/compile-fail/issue-1448-1.rs
Gareth Daniel Smith 6d86969260 change the test suite //! kind syntax to //~ kind in order to avoid a
conflict with the new single-line-sugared-inner-doc-comment (`//! ...`).
2012-06-30 12:23:59 +01:00

8 lines
224 B
Rust

// Regresion test for issue #1448 and #1386
fn main() {
#macro[[#apply[f, [x, ...]], f(x, ...)]];
fn add(a: int, b: int) -> int { ret a + b; }
assert (#apply[add, [y, 15]] == 16); //~ ERROR unresolved name: y
}