Sign in
fuchsia
/
third_party
/
rust
/
a10a02bf5fd00e4b34f1856af17d058dd5ec06f0
/
.
/
src
/
test
/
ui
/
consts
/
array-to-slice-cast.rs
blob: 796f9d1b71f76cfacad59565994e7ba9b3d1e188 [
file
] [
log
] [
blame
]
// 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
;
}