mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-01 12:37:37 +00:00
15 lines
342 B
Rust
15 lines
342 B
Rust
![]() |
// check-pass: this used to be a stack overflow because of recursion in `usefulness.rs`
|
||
|
|
||
|
macro_rules! long_tuple_arg {
|
||
|
([$($t:tt)*]#$($h:tt)*) => {
|
||
|
long_tuple_arg!{[$($t)*$($t)*]$($h)*}
|
||
|
};
|
||
|
([$([$t:tt $y:tt])*]) => {
|
||
|
pub fn _f(($($t,)*): ($($y,)*)) {}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
long_tuple_arg!{[[_ u8]]########## ###}
|
||
|
|
||
|
fn main() {}
|