summaryrefslogtreecommitdiffstats
path: root/src/test/ui/pattern/usefulness/issue-88747.rs
blob: 948c99f9ce989ce0f6624beb46ffe098ed52753a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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() {}