2018-08-29 17:45:55 +02:00
|
|
|
// 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()];
|
2024-01-05 12:18:11 +01:00
|
|
|
//~^ ERROR referencing statics in constants
|
2018-08-29 17:45:55 +02:00
|
|
|
|
|
|
|
fn main() {}
|