File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -156,11 +156,23 @@ fn test_traits_with_table_collection() {
156
156
#[ test]
157
157
fn test_traits_with_table_collection_holder ( ) {
158
158
let tables = make_tables ( ) ;
159
- let tref = & tables;
159
+ let tref: & tskit :: TableCollection = & tables;
160
160
let tables_output = IteratorOutput :: new_from_tables ( tref) ;
161
- let boxed = Box :: new ( tref) ;
162
- let dynamic_output = IteratorOutput :: new_from_dyn ( & boxed) ;
163
- assert_eq ! ( tables_output, dynamic_output) ;
161
+ //let boxed = Box::new(tref);
162
+ //let dynamic_output = IteratorOutput::new_from_dyn(&boxed);
163
+ //assert_eq!(tables_output, dynamic_output);
164
+ fn foo ( _: impl tskit:: TableIteration ) {
165
+ todo ! ( "this compiles" ) ;
166
+
167
+ }
168
+ fn foo2 < T > ( _: T ) where T : tskit:: TableIteration {
169
+ todo ! ( "this compiles" ) ;
170
+ }
171
+ foo ( tref) ;
172
+ foo2 ( tref) ;
173
+ let h = TablesHolder { tables : tref} ;
174
+ foo ( h. tables ) ;
175
+ foo2 ( h. tables ) ;
164
176
}
165
177
166
178
#[ test]
You can’t perform that action at this time.
0 commit comments