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

Remove default Sized bound on trait Self param #20497

Closed
brson opened this issue Jan 4, 2015 · 2 comments
Closed

Remove default Sized bound on trait Self param #20497

brson opened this issue Jan 4, 2015 · 2 comments
Labels
B-RFC-approved Blocker: Approved by a merged RFC but not yet implemented.

Comments

@brson
Copy link
Contributor

brson commented Jan 4, 2015

Tracking rust-lang/rfcs#546

@brson brson added I-nominated B-RFC-approved Blocker: Approved by a merged RFC but not yet implemented. labels Jan 4, 2015
@nikomatsakis
Copy link
Contributor

Implemented in #20341

@neon64
Copy link

neon64 commented Aug 19, 2015

The RFC talks about how 'fallout' within the standard library is minimal, but doesn't provide any information about how we are supposed to update our own code to make it work. I know that at the moment it is only a warning but in the future it will become an error so I think its important to tell people.

The RFC seems to suggest that writing trait Foo for ?Sized { ... } is possible but under rustc 1.4.0-nightly (e822a18ae 2015-08-16) that won't compile.

Would you please be able to detail how users can convert existing code?

My extremely simplified example shows the issue: http://is.gd/1gPnQP

Thanks very much if you could help with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B-RFC-approved Blocker: Approved by a merged RFC but not yet implemented.
Projects
None yet
Development

No branches or pull requests

3 participants