about summary refs log tree commit diff
path: root/tests/crashes/135570.rs
blob: 7919ceb26d50df1dbeb51fa1eaca774dadaea5be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//@ known-bug: #135570
//@compile-flags: -Zvalidate-mir -Zmir-enable-passes=+Inline -Copt-level=0 -Zmir-enable-passes=+GVN
//@ only-x86_64

#![feature(adt_const_params, unsized_const_params)]
#![allow(incomplete_features)]

fn function_with_bytes<const BYTES: &'static [u8; 0xc7b889180b67b07d_bc1a3c88783d35b5_u128]>(
) -> &'static [u8] {
    BYTES
}

fn main() {
    function_with_bytes::<b"aa">() == &[];
}