Skip to content

Commit 19d5ad7

Browse files
kevinabrson
authored andcommitted
Add regresion tests for issue #1448 and #1387.
1 parent b49d173 commit 19d5ad7

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/test/compile-fail/issue-1448-1.rs

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Regresion test for issue #1448 and #1386
2+
3+
fn main() {
4+
#macro[[#apply[f, [x, ...]], f(x, ...)]];
5+
fn add(a: int, b: int) -> int { ret a + b; }
6+
assert (#apply[add, [y, 15]] == 16); //! ERROR unresolved name: y
7+
}

src/test/compile-fail/issue-1448-2.rs

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// Regresion test for issue #1448 and #1386
2+
3+
fn main() {
4+
#debug["%u", 10]; //! ERROR mismatched types
5+
}

0 commit comments

Comments
 (0)