nitric1 / wstr-rs

Rust macros for compile-time UTF-16 (wide) string literals.
MIT License
5 stars 0 forks source link

Cannot use in constants #2

Open LunarLambda opened 3 years ago

LunarLambda commented 3 years ago

The following snippet does not compile:

const SOME_WSTR: &'static [u16] = wstr!("Hello");

The macro should not emit a hidden static item and return reference to it, and rather emit the array directly.