diff options
Diffstat (limited to 'tests/ui/type/type-check/issue-88577-check-fn-with-more-than-65535-arguments.rs')
-rw-r--r-- | tests/ui/type/type-check/issue-88577-check-fn-with-more-than-65535-arguments.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/type/type-check/issue-88577-check-fn-with-more-than-65535-arguments.rs b/tests/ui/type/type-check/issue-88577-check-fn-with-more-than-65535-arguments.rs new file mode 100644 index 000000000..e50cc5865 --- /dev/null +++ b/tests/ui/type/type-check/issue-88577-check-fn-with-more-than-65535-arguments.rs @@ -0,0 +1,12 @@ +macro_rules! many_args { + ([$($t:tt)*]#$($h:tt)*) => { + many_args!{[$($t)*$($t)*]$($h)*} + }; + ([$($t:tt)*]) => { + fn _f($($t: ()),*) {} //~ ERROR function can not have more than 65535 arguments + } +} + +many_args!{[_]########## ######} + +fn main() {} |