Using &'static in tokio
⚓ Rust 📅 2025-10-05 👤 surdeus 👁️ 6Is it possible to use &'static via std::mem::transmute, given that the data referenced by 'static exists longer (forever)? Will this lead to some error? I need this for working with tokio. I'm trying to work with 'a, but it only leads to errors.
10 posts - 3 participants
🏷️ Rust_feed