Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
static
/
static-list-initialization-5917.rs
blob: c6c32f7582e1707e5a0f2616416f4ef89b31cc02 [
file
] [
log
] [
blame
]
// https://github.com/rust-lang/rust/issues/5917
//@ run-pass
#![
allow
(
non_upper_case_globals
)]
struct
T
(&
'
static
[
isize
]);
static
t
:
T
=
T
(&[
5
,
4
,
3
]);
pub
fn
main
()
{
let
T
(
ref
v
)
=
t
;
assert_eq
!(
v
[
0
],
5
);
}