rust/src/test/ui/issues/issue-52060.rs
2018-08-30 11:39:23 +02:00

9 lines
288 B
Rust

// 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 `core::slice::<impl [T]>::len` is not yet stable as a const fn
fn main() {}