Sign in
fuchsia
/
third_party
/
rust
/
b53a1b38089f30a34d932ad4030f3d529664c9df
/
.
/
tests
/
ui
/
const-generics
/
coerce_unsized_array.rs
blob: ffd5eb9d462eda0efe3be7b4f7ca7fed693256cb [
file
] [
log
] [
blame
]
// run-pass
fn
foo
<
const
N
:
usize
>(
v
:
&[
u8
;
N
])
->
&[
u8
]
{
v
}
fn
main
()
{
assert_eq
!(
foo
(&[
1
,
2
]),
&[
1
,
2
]);
}