rust/src/test/ui/macros/concat-bytes.rs

8 lines
162 B
Rust
Raw Normal View History

// run-pass
#![feature(concat_bytes)]
fn main() {
assert_eq!(concat_bytes!(), &[]);
assert_eq!(concat_bytes!(b'A', b"BC", [68, b'E', 70]), b"ABCDEF");
}