Sign in
android
/
toolchain
/
rustc
/
5c0824a599f2f1f4dcb9c92edf09f6c1b555988d
/
.
/
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
]);
}