Currently this code would pass for Vec<String> but not for other collection types. Correct behavior when collect is present would be detect to "peel" the outer level from the type (BTreeSet part) and put it into collect part part while passing inner part (String) to argument.
Currently this code would pass for
Vec<String>
but not for other collection types. Correct behavior whencollect
is present would be detect to "peel" the outer level from the type (BTreeSet
part) and put it into collect part part while passing inner part (String
) toargument
.