mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
8 lines
214 B
Rust
8 lines
214 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]
|
|
|
|
fn main() {}
|