1 #![feature(adt_const_params)]
2 #![allow(incomplete_features)]
4 pub fn function_with_bytes<const BYTES: &'static [u8; 4]>() -> &'static [u8] {
8 // EMIT_MIR issue_99325.main.built.after.mir
10 assert_eq!(function_with_bytes::<b"AAAA">(), &[0x41, 0x41, 0x41, 0x41]);
11 assert_eq!(function_with_bytes::<{ &[0x41, 0x41, 0x41, 0x41] }>(), b"AAAA");