rust/tests/ui/pattern/usefulness/issue-88747.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
342 B
Rust
Raw Normal View History

2021-11-23 15:55:48 -06:00
// 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() {}