You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All access to a static is safe, but there are a number of restrictions on statics:
The type must have the Sync trait bound to allow thread-safe access.
Constants cannot refer to statics.
I am willing to write a PR for this but I am not sure what the best course of action is. Simply removing that bullet-point would mean having to rephrase the text above it, but I don't know what would sound best (also, a single bullet-point may look weird).
What should I do?
The text was updated successfully, but these errors were encountered:
Oops, my bad. instead of searching for existing issues/PRs I merely checked the date of the most recent ones since the update announcement was published and found none. I should have looked further. I apologize.
Hello! I've noticed that the Rust 1.83.0 announcement mentions that it is now possible to reference
static
items inconst
contexts:But the Rust Reference still says it is not:
I am willing to write a PR for this but I am not sure what the best course of action is. Simply removing that bullet-point would mean having to rephrase the text above it, but I don't know what would sound best (also, a single bullet-point may look weird).
What should I do?
The text was updated successfully, but these errors were encountered: