rust-lang-nursery / lazy-static.rs

A small macro for defining lazy evaluated static variables in Rust.
Apache License 2.0
1.9k stars 108 forks source link

Error: can't capture dynamic environment in a fn item; use the || { ... } closure form instead #218

Open amab8901 opened 2 months ago

amab8901 commented 2 months ago

https://github.com/rust-lang-nursery/lazy-static.rs/issues/19#issue-73125355

I'm reopening this issue posted by another user, since it wasn't actually solved and I'm having a similar problem