We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Why does this work:
use std::borrow::Cow; pub const X: [u8; 3] = *b"ABC"; pub const Y: Cow<'static, [ [u8; 3] ]> = Cow::Borrowed(&[X]);
but this doesn't?
use std::borrow::Cow; pub const Z: Cow<'static, [ [u8; 3] ]> = Cow::Borrowed(&[*b"ABC"]);