Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
consts
/
array-to-slice-cast.rs
blob: 633a356aa9e944d7722953017b7e6ac479bc99c2 [
file
] [
log
] [
blame
] [
edit
]
//@ check-pass
fn
main
()
{}
const
fn
foo
()
{
let
x
=
[
1
,
2
,
3
,
4
,
5
];
let
y
:
&[
_
]
=
&
x
;
struct
Foo
<
T
:
?
Sized
>(
bool
,
T
);
let
x
:
Foo
<[
u8
;
3
]>
=
Foo
(
true
,
[
1
,
2
,
3
]);
let
y
:
&
Foo
<[
u8
]>
=
&
x
;
}