-
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
Literals don't have static lifetime #40405
Comments
It's not about slices: |
Related #18852 |
IIUC #38865 should fix this. |
Huzzah! From RFC 1414:
|
I'm going to close this in favor of the tracking issue. |
OK:
Borrowck error:
But consts and literals are basically the same thing, so I'd expect this to work.
The text was updated successfully, but these errors were encountered: