Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
run-pass
/
tuple-index-fat-types.rs
blob: ee224cc84bfb18162be51073a145a745196c1da5 [
file
] [
log
] [
blame
]
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
);
}