Sign in
rust
/
rust
/
97b1c314892ef4497c0ce5656daa3a54c4e052d3
/
.
/
tests
/
ui
/
const-generics
/
coerce_unsized_array.rs
blob: baecead30a16095d52c759419fe4e630c25bdf1f [
file
]
//@ run-pass
fn
foo
<
const
N
:
usize
>(
v
:
&[
u8
;
N
])
->
&[
u8
]
{
v
}
fn
main
()
{
assert_eq
!(
foo
(&[
1
,
2
]),
&[
1
,
2
]);
}