Sign in
rust
/
rust-lang
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
incremental
/
const-generics
/
issue-62536.rs
blob: ebabc8576415731800205f00cfe113ceb9afac36 [
file
] [
log
] [
blame
]
//@ revisions:cfail1
#![
allow
(
unused_variables
)]
struct
S
<
T
,
const
N
:
usize
>([
T
;
N
]);
fn
f
<
T
,
const
N
:
usize
>(
x
:
T
)
->
S
<
T
,
{
N
}>
{
panic
!()
}
fn
main
()
{
f
(
0u8
);
//[cfail1]~^ ERROR type annotations needed
}