Sign in
fuchsia
/
third_party
/
rust
/
c38f75c21f016bffbf841ed5abce338f94201bde
/
.
/
tests
/
ui
/
consts
/
issue-52060.rs
blob: 0f16ede040010a5d59673d8a4fae1d0e8ffdeb64 [
file
] [
log
] [
blame
]
// 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
()
{}