diff options
Diffstat (limited to 'src/test/ui/macros/empty-trailing-stmt.rs')
-rw-r--r-- | src/test/ui/macros/empty-trailing-stmt.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/macros/empty-trailing-stmt.rs b/src/test/ui/macros/empty-trailing-stmt.rs new file mode 100644 index 000000000..3d78ed4a4 --- /dev/null +++ b/src/test/ui/macros/empty-trailing-stmt.rs @@ -0,0 +1,10 @@ +macro_rules! empty { + () => { } +} + +fn foo() -> bool { //~ ERROR mismatched + { true } //~ ERROR mismatched + empty!(); +} + +fn main() {} |