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
@@ -11,7 +11,7 @@ impl Licensed for SomeSoftware {}
impl Licensed for OtherSoftware {}
// TODO: Fix the compiler error by only changing the signature of this function.
fn compare_license_types(software1: ???, software2: ???) -> bool {
fn compare_license_types(software1: impl Licensed, software2: impl Licensed) -> bool {
software1.licensing_info() == software2.licensing_info()
}