diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ui/macros/missing-semi.rs | 11 | ||||
| -rw-r--r-- | tests/ui/macros/missing-semi.stderr | 8 |
2 files changed, 19 insertions, 0 deletions
diff --git a/tests/ui/macros/missing-semi.rs b/tests/ui/macros/missing-semi.rs new file mode 100644 index 00000000000..b7e90e9e442 --- /dev/null +++ b/tests/ui/macros/missing-semi.rs @@ -0,0 +1,11 @@ +#[allow(unused_macros)] +macro_rules! foo { + () => { + + } + () => { + //~^ ERROR expected `;`, found `(` + } +} + +fn main() {} diff --git a/tests/ui/macros/missing-semi.stderr b/tests/ui/macros/missing-semi.stderr new file mode 100644 index 00000000000..0a7afe50059 --- /dev/null +++ b/tests/ui/macros/missing-semi.stderr @@ -0,0 +1,8 @@ +error: expected `;`, found `(` + --> $DIR/missing-semi.rs:6:5 + | +LL | () => { + | ^ no rules expected this token in macro call + +error: aborting due to 1 previous error + |
