blob: e50cc586515a626d4a64284cc57c1c60bbbc7ff7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
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() {}
|