Sign in
rust
/
rust
/
97b1c314892ef4497c0ce5656daa3a54c4e052d3
/
.
/
tests
/
ui
/
cross-crate
/
static-array-across-crate.rs
blob: fecdf41c29826a2325ef5c0f86eabca01e295541 [
file
]
//@ run-pass
#![
allow
(
dead_code
)]
//@ aux-build:pub_static_array.rs
extern
crate pub_static_array
as
array
;
use
array
::
ARRAY
;
static
X
:
&
'
static
u8
=
&
ARRAY
[
0
];
static
Y
:
&
'
static
u8
=
&(&
ARRAY
)[
0
];
static
Z
:
u8
=
(&
ARRAY
)[
0
];
pub
fn
main
()
{}