You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wanting to limit your splits to a certain number suddenly requires the pattern to implement DoubleEndedSearcher, so the following code fragment using strings as splits fails:
<anon>:3:54: 3:63 error: type `core::str::SplitN<'_, &str>` does not implement any method in scope named `collect`
<anon>:3 let v2: Vec<_> = "test:thing:test".splitn(1, ":").collect();
^~~~~~~~~
I would expect both of them to have pretty much the same requirements as for the pattern argument.
The text was updated successfully, but these errors were encountered:
Wanting to limit your splits to a certain number suddenly requires the pattern to implement
DoubleEndedSearcher
, so the following code fragment using strings as splits fails:With:
I would expect both of them to have pretty much the same requirements as for the pattern argument.
The text was updated successfully, but these errors were encountered: