mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-16 16:40:17 +00:00
11 lines
313 B
Rust
11 lines
313 B
Rust
//@ known-bug: rust-lang/rust#129095
|
|
//@ compile-flags: -Zmir-enable-passes=+GVN -Zmir-enable-passes=+Inline -Zvalidate-mir
|
|
|
|
pub fn function_with_bytes<const BYTES: &'static [u8; 4]>() -> &'static [u8] {
|
|
BYTES
|
|
}
|
|
|
|
pub fn main() {
|
|
assert_eq!(function_with_bytes::<b"AAAAb">(), &[0x41, 0x41, 0x41, 0x41]);
|
|
}
|