feat: traits done

This commit is contained in:
2026-09-11 17:37:48 +02:00
parent b94cdfd4c4
commit 8ded4cc8b5
5 changed files with 14 additions and 3 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ impl SomeTrait for OtherStruct {}
impl OtherTrait for OtherStruct {}
// TODO: Fix the compiler error by only changing the signature of this function.
fn some_func(item: ???) -> bool {
fn some_func(item: impl SomeTrait + OtherTrait) -> bool {
item.some_function() && item.other_function()
}