-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Can't fulfill 'static bound with &'static pointer. #7268
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
no bug. The type parameter
|
Not to mean this should change, but it should also be impossible to (safely) construct a |
That is true. |
I decided you're right, we ought to try |
Here is a testcase for putting &'static fn() closures into trait objects. Of course sendable closures are also interesting (do we have to use extern fn for that?).
|
Seconding the nomination for feature complete, I suppose? |
accepted for production-ready |
Could be added backwards-compatibly in the future. Assigning P-low, not 1.0 blocker. |
@nikomatsakis the natural generalization here, assuming we finish #5121 by allowing lifetime kind bounds other than |
Move `semicolon_if_nothing_returned` to `pedantic` This moves the `semicolon_if_nothing_returned` lint to `pedantic` category. I had done rust-lang#7148, but on the master branch, and Github doesn't seem to let me change that, so here's another PR changelog: Move [`semicolon_if_nothing_returned`] lint into `pedantic` category.
This should be legal but isn't:
@nikomatsakis ?
nominating feature-complete
The text was updated successfully, but these errors were encountered: