Sign in
rust
/
rust
/
08650fbb506c44fbc95d91abfb7cd95a56bbff30
/
.
/
src
/
test
/
ui
/
const-generics
/
coerce_unsized_array.rs
blob: ffd5eb9d462eda0efe3be7b4f7ca7fed693256cb [
file
]
// run-pass
fn
foo
<
const
N
:
usize
>(
v
:
&[
u8
;
N
])
->
&[
u8
]
{
v
}
fn
main
()
{
assert_eq
!(
foo
(&[
1
,
2
]),
&[
1
,
2
]);
}