File tree 2 files changed +41
-0
lines changed
2 files changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ // check-pass
2
+ pub trait Archive {
3
+ type Archived ;
4
+ }
5
+
6
+ impl < T > Archive for Option < T > {
7
+ type Archived = ( ) ;
8
+ }
9
+ pub type Archived < T > = <T as Archive >:: Archived ;
10
+
11
+ pub trait Deserialize < D > { }
12
+
13
+ const ARRAY_SIZE : usize = 32 ;
14
+ impl < __D > Deserialize < __D > for ( )
15
+ where
16
+ Option < [ u8 ; ARRAY_SIZE ] > : Archive ,
17
+ Archived < Option < [ u8 ; ARRAY_SIZE ] > > : Deserialize < __D > ,
18
+ {
19
+ }
20
+ fn main ( ) { }
Original file line number Diff line number Diff line change
1
+ // check-pass
2
+ pub trait Archive {
3
+ type Archived ;
4
+ }
5
+
6
+ impl < T > Archive for Option < T > {
7
+ type Archived = ( ) ;
8
+ }
9
+ pub type Archived < T > = <T as Archive >:: Archived ;
10
+
11
+ pub trait Deserialize < D > { }
12
+
13
+ const ARRAY_SIZE : usize = 32 ;
14
+ impl < __D > Deserialize < __D > for ( )
15
+ where
16
+ Option < [ u8 ; ARRAY_SIZE ] > : Archive ,
17
+ Option < [ u8 ; ARRAY_SIZE ] > : Archive ,
18
+ Archived < Option < [ u8 ; ARRAY_SIZE ] > > : Deserialize < __D > ,
19
+ {
20
+ }
21
+ fn main ( ) { }
You can’t perform that action at this time.
0 commit comments