Sign in
android
/
toolchain
/
rustc
/
5c0824a599f2f1f4dcb9c92edf09f6c1b555988d
/
.
/
tests
/
ui
/
const-generics
/
defaults
/
const-param-in-ty-defaults.rs
blob: 5f0cafe2ef1799290c449bb6bc43b0792b7014bb [
file
] [
log
] [
blame
]
// run-pass
struct
Foo
<
const
N
:
usize
,
T
=
[
u8
;
N
]>(
T
);
impl
<
const
N
:
usize
>
Foo
<
N
>
{
fn
new
()
->
Self
{
Foo
([
0
;
N
])
}
}
fn
main
()
{
assert_eq
!(
Foo
::
new
().
0
,
[
0
;
10
]);
}