Sign in
◑
Theme
rust
/
rust
/
c2cf85ba50d688310d4b3abcdb38b2cdfd558cda
/
.
/
tests
/
incremental
/
const-generics
/
issue-62536.rs
blob: 345ea4917b7f12f97a292c6e3a7b820f235985a1 [
file
]
//@ revisions: bfail1
#![
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
);
//[bfail1]~^ ERROR type annotations needed
}