File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed
Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change 1+ #![ recursion_limit = "256" ]
12#![ allow(
23 clippy:: elidable_lifetime_names,
34 clippy:: needless_lifetimes,
@@ -314,3 +315,56 @@ fn test_impl_trait_trailing_plus() {
314315 }
315316 "# ) ;
316317}
318+
319+ // Regression test for issue https://github.com/dtolnay/syn/issues/1967
320+ #[ test]
321+ fn test_nested_receiver_classification ( ) {
322+ let tokens = quote ! {
323+ fn foo(
324+ self : foo<{ fn foo(
325+ self : foo<{ fn foo(
326+ self : foo<{ fn foo(
327+ self : foo<{ fn foo(
328+ self : foo<{ fn foo(
329+ self : foo<{ fn foo(
330+ self : foo<{ fn foo(
331+ self : foo<{ fn foo(
332+ self : foo<{ fn foo(
333+ self : foo<{ fn foo(
334+ self : foo<{ fn foo(
335+ self : foo<{ fn foo(
336+ self : foo<{ fn foo(
337+ self : foo<{ fn foo(
338+ self : foo<{ fn foo(
339+ self : foo<{ fn foo(
340+ self : foo<{ fn foo(
341+ self : foo<{ fn foo(
342+ self : foo<{ fn foo(
343+ self : foo<{ fn foo(
344+ self : foo<{ fn foo(
345+ ) } >
346+ ) } >
347+ ) } >
348+ ) } >
349+ ) } >
350+ ) } >
351+ ) } >
352+ ) } >
353+ ) } >
354+ ) } >
355+ ) } >
356+ ) } >
357+ ) } >
358+ ) } >
359+ ) } >
360+ ) } >
361+ ) } >
362+ ) } >
363+ ) } >
364+ ) } >
365+ ) } >
366+ ) { }
367+ } ;
368+
369+ let _ = syn:: parse2 :: < syn:: File > ( tokens) ;
370+ }
You can’t perform that action at this time.
0 commit comments