]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/issue-52060.rs
Rollup merge of #106927 - Ezrashaw:e0606-make-machine-applicable, r=estebank
[rust.git] / tests / ui / consts / issue-52060.rs
1 // Regression test for https://github.com/rust-lang/rust/issues/52060
2 // The compiler shouldn't ICE in this case
3 static A: &'static [u32] = &[1];
4 static B: [u32; 1] = [0; A.len()];
5 //~^ ERROR [E0013]
6
7 fn main() {}