From d4480b5f47936e99db8a6e51a02ea074ca4b7797 Mon Sep 17 00:00:00 2001 From: young Date: Sat, 5 Nov 2022 23:16:34 +0900 Subject: [PATCH] traits5 --- exercises/traits/traits5.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/traits/traits5.rs b/exercises/traits/traits5.rs index 0fbca28a..76489006 100644 --- a/exercises/traits/traits5.rs +++ b/exercises/traits/traits5.rs @@ -27,7 +27,7 @@ impl SomeTrait for OtherStruct {} impl OtherTrait for OtherStruct {} // YOU MAY ONLY CHANGE THE NEXT LINE -fn some_func(item: ??) -> bool { +fn some_func(item: impl SomeTrait + OtherTrait) -> bool { item.some_function() && item.other_function() }