about summary refs log tree commit diff
path: root/src/test/compile-fail/issue-1448-1.rs
blob: ccd13b709a619245b45d4153f1ef133eadba18d5 (plain)
1
2
3
4
5
6
7
// Regresion test for issue #1448 and #1386

fn main() {
    #macro[[#apply[f, [x, ...]], f(x, ...)]];
    fn add(a: int, b: int) -> int { return a + b; }
    assert (apply!(add, [y, 15]) == 16); //~ ERROR unresolved name: y
}