File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -11,4 +11,27 @@ trait CallWithShim: Sized {
1111#[ derive( Clone ) ]
1212struct ShimMethod < T : CallWithShim + ' static > ( pub & ' static dyn for < ' s > Fn ( & ' s mut T :: Shim < ' s > ) ) ;
1313
14+ trait CallWithShim2 : Sized {
15+ type Shim < T > ;
16+ }
17+
18+ struct S < ' s > ( & ' s ( ) ) ;
19+
20+ #[ derive( Clone ) ]
21+ struct ShimMethod2 < T : CallWithShim2 + ' static > ( pub & ' static dyn for < ' s > Fn ( & ' s mut T :: Shim < S < ' s > > ) ) ;
22+
23+ trait Trait < ' s , ' t > { }
24+
25+ #[ derive( Clone ) ]
26+ struct ShimMethod3 < T : CallWithShim2 + ' static > (
27+ pub & ' static dyn for < ' s > Fn ( & ' s mut T :: Shim < dyn for < ' t > Trait < ' s , ' t > > ) ,
28+ ) ;
29+
30+ trait Trait2 {
31+ type As ;
32+ }
33+
34+ #[ derive( Clone ) ]
35+ struct ShimMethod4 < T : Trait2 + ' static > ( pub & ' static dyn for < ' s > Fn ( & ' s mut T :: As ) ) ;
36+
1437pub fn main ( ) { }
You can’t perform that action at this time.
0 commit comments