mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
11 lines
278 B
Rust
11 lines
278 B
Rust
//@ known-bug: rust-lang/rust#129095
|
|
//@ compile-flags: -Zmir-opt-level=5 -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]);
|
|
}
|