File tree 1 file changed +1
-6
lines changed
itest/rust/src/object_tests
1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ use godot::prelude::*;
11
11
#[ itest]
12
12
fn dyn_gd_creation_bind ( ) {
13
13
// type can't be inferred because RefcHealth implements more than one AsDyn<...> trait.
14
- // otherwise let _unused: = … would be enough
14
+ // otherwise let _unused = … would be enough
15
15
let _unused: DynGd < RefcHealth , dyn Health > = Gd :: from_object ( RefcHealth { hp : 1 } ) . into_dyn ( ) ;
16
16
let _unused: DynGd < RefcHealth , dyn HealthWithAssociatedType < HealthType = u8 > > =
17
17
Gd :: from_object ( RefcHealth { hp : 1 } ) . into_dyn ( ) ;
@@ -436,11 +436,6 @@ fn dyn_gd_error_unimplemented_trait() {
436
436
err. to_string( ) ,
437
437
format!( "none of the classes derived from `RefCounted` have been linked to trait `dyn Health` with #[godot_dyn]: {obj:?}" )
438
438
) ;
439
- }
440
-
441
- #[ itest]
442
- fn dyn_gd_error_unimplemented_trait_with_associated_type ( ) {
443
- let obj = RefCounted :: new_gd ( ) ;
444
439
445
440
let variant = obj. to_variant ( ) ;
446
441
let back = variant. try_to :: < DynGd < RefCounted , dyn HealthWithAssociatedType < HealthType = u8 > > > ( ) ;
You can’t perform that action at this time.
0 commit comments