Open GGORG0 opened 19 hours ago
The error is unfortunately not very helpful here, since the macro really only expects string literals. Thanks for bringing this up.
However, I'm pretty sure that what you're attempting should be possible - I'll check it out!
Hi, I'd like to obfuscate a string from the
env!()
macro. It returns a&'static str
, so this shouldn't be a problem, right?It is.
error: Expression must be of type &'static str