Sign in
fuchsia
/
third_party
/
rust
/
03222c037142e915e9ea75f681ab98a5a46b8739
/
.
/
src
/
test
/
ui
/
tuple-index-fat-types.rs
blob: 5dda1ed975cc3964be2f04154530a2b999e347d3 [
file
] [
log
] [
blame
]
// run-pass
struct
Foo
<
'a>(&'
a
[
isize
]);
fn
main
()
{
let
x
:
&[
isize
]
=
&[
1
,
2
,
3
];
let
y
=
(
x
,);
assert_eq
!(
y
.
0
,
x
);
let
x
:
&[
isize
]
=
&[
1
,
2
,
3
];
let
y
=
Foo
(
x
);
assert_eq
!(
y
.
0
,
x
);
}