Skip to content
Discussion options

You must be logged in to vote

It doesn't have to be a pure function. The 'static just means it can't borrow anything. That's very different from what a "pure" function is.

I don't have the specific context, but you might consider changing the signature to what you want and seeing what breaks. Consider, for example, that spawning a thread has a similar restriction.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@matthiasbeyer
Comment options

Answer selected by BurntSushi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2631 on October 15, 2023 13:39.