Sign in
fuchsia
/
third_party
/
rust
/
13ef05e2be9862ea7b94d0b42e0b2d044b3c7f6b
/
.
/
tests
/
ui
/
tuple
/
tuple-index-fat-types.rs
blob: 0dbdacde60ac583840603f35378fa3b2bc9dc842 [
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
);
}