Skip to content
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 doesn't have clear method #7900

Closed
jeaye opened this issue Jul 19, 2013 · 2 comments
Closed

str doesn't have clear method #7900

jeaye opened this issue Jul 19, 2013 · 2 comments

Comments

@jeaye
Copy link

jeaye commented Jul 19, 2013

let mut s = ~"foo";
/* type `~str` does not implement any method in scope named `clear` */
s.clear();
s

"~str should implement Container + Mutable" says strcat.

bors added a commit that referenced this issue Jul 21, 2013
~str and @str need separate implementations for use in generic
functions, where it will not automatically use the impl on &str.

fixes issue #7900
@bluss
Copy link
Member

bluss commented Jul 22, 2013

fixed

@huonw
Copy link
Member

huonw commented Jul 22, 2013

Fixed by #7932.

@huonw huonw closed this as completed Jul 22, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants