diff options
Diffstat (limited to 'tests/ui/macros/issue-103529.rs')
-rw-r--r-- | tests/ui/macros/issue-103529.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/macros/issue-103529.rs b/tests/ui/macros/issue-103529.rs new file mode 100644 index 000000000..fa05baed7 --- /dev/null +++ b/tests/ui/macros/issue-103529.rs @@ -0,0 +1,13 @@ +macro_rules! m { + ($s:stmt) => {} +} + +m! { mut x } +//~^ ERROR expected expression, found keyword `mut` +//~| ERROR expected a statement +m! { auto x } +//~^ ERROR invalid variable declaration +m! { var x } +//~^ ERROR invalid variable declaration + +fn main() {} |