This commit is contained in:
young 2022-11-05 23:16:34 +09:00
parent 1d646b414b
commit d4480b5f47

View File

@ -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()
}