mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
7 lines
239 B
Rust
7 lines
239 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 referencing statics in constants
|
|
|
|
fn main() {}
|