Sized (or Sizeable) str, e.g. str<const N: usize>
Rust Internals [Unofficial]
May 4, 2026
You'd have to use const TEXT: &::core::primitive::str = $text to be doubly sure
You'd have to use const TEXT: &::core::primitive::str = $text to be doubly sure
Discussion in the ATmosphere