3 #![feature(adt_const_params)]
4 #![allow(incomplete_features)]
6 pub fn function_with_bytes<const BYTES: &'static [u8; 4]>() -> &'static [u8] {
11 assert_eq!(function_with_bytes::<b"AAAA">(), &[0x41, 0x41, 0x41, 0x41]);
12 assert_eq!(function_with_bytes::<{ &[0x41, 0x41, 0x41, 0x41] }>(), b"AAAA");