Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
5f62a35bae82dd0c5ff9dedd83fe2cfd74b67792
/
.
/
tests
/
ui
/
consts
/
array-to-slice-cast.rs
blob: 633a356aa9e944d7722953017b7e6ac479bc99c2 [
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
;
}