-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
&str.splitn() not implemented #24075
Comments
So, while that doesn't work, passing a closure as a pattern does:
So there's something about |
/cc @nikomatsakis |
See #23952 |
so this can be closed now that #23952 is merged? |
The test case still fails with the same error. |
@steveklabnik I think last night's nightly didn't succeed, but I do believe @oli-obk is right in that @Kimundi fixed this in #23952. As a result, closing! |
To start with, I'm relatively new to the language, and I'm trying to use
&str.splitn()
. According to what I could determine from the API, it should have annth()
member, yet it doesn't seem to. It also seems to be missing other members too.My test is:
Which gives me the error:
This however allows it to work: http://is.gd/Vdjy8i (Thanks to Steveklabnik from the rust IRC channel)
This is using
rustc 1.0.0-beta (9854143cb 2015-04-02) (built 2015-04-02)
.The text was updated successfully, but these errors were encountered: