diff options
Diffstat (limited to 'tests/ui/macros/issue-54441.rs')
-rw-r--r-- | tests/ui/macros/issue-54441.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/macros/issue-54441.rs b/tests/ui/macros/issue-54441.rs new file mode 100644 index 000000000..b24d7e1f6 --- /dev/null +++ b/tests/ui/macros/issue-54441.rs @@ -0,0 +1,11 @@ +macro_rules! m { + () => { + let //~ ERROR macro expansion ignores token `let` and any following + }; +} + +extern "C" { + m!(); +} + +fn main() {} |