Skip to content

Commit e716815

Browse files
committed
Add support for assoc items
- fix typo - `let _unused = … would be enough` instead of `let _unused: = …` - Merge tests checking for unimplemented traits.
1 parent 1f9fad3 commit e716815

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

itest/rust/src/object_tests/dyn_gd_test.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use godot::prelude::*;
1111
#[itest]
1212
fn dyn_gd_creation_bind() {
1313
// 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
1515
let _unused: DynGd<RefcHealth, dyn Health> = Gd::from_object(RefcHealth { hp: 1 }).into_dyn();
1616
let _unused: DynGd<RefcHealth, dyn HealthWithAssociatedType<HealthType = u8>> =
1717
Gd::from_object(RefcHealth { hp: 1 }).into_dyn();
@@ -436,11 +436,6 @@ fn dyn_gd_error_unimplemented_trait() {
436436
err.to_string(),
437437
format!("none of the classes derived from `RefCounted` have been linked to trait `dyn Health` with #[godot_dyn]: {obj:?}")
438438
);
439-
}
440-
441-
#[itest]
442-
fn dyn_gd_error_unimplemented_trait_with_associated_type() {
443-
let obj = RefCounted::new_gd();
444439

445440
let variant = obj.to_variant();
446441
let back = variant.try_to::<DynGd<RefCounted, dyn HealthWithAssociatedType<HealthType = u8>>>();

0 commit comments

Comments
 (0)