Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
issues
/
issue-5917.rs
blob: 6ab7081cf8843ec083c716fe1dac2201cd93755a [
file
] [
log
] [
blame
]
// 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
);
}