summary refs log tree commit diff
path: root/src/test/ui/issues/issue-52060.rs
blob: fed08902c8b9d35def06f90722a25d06b55a4bdc (plain)
1
2
3
4
5
6
7
8
// Regression test for https://github.com/rust-lang/rust/issues/52060
// The compiler shouldn't ICE in this case
static A: &'static [u32] = &[1];
static B: [u32; 1] = [0; A.len()];
//~^ ERROR [E0013]
//~| ERROR evaluation of constant value failed

fn main() {}