Sign in
rust
/
rust
/
a0f398e89df9767c93c81cd58d44fdba071258a8
/
.
/
tests
/
ui
/
const-generics
/
const-param-type-depends-on-type-param-ungated.rs
blob: b776f2017fae0d92e27c25acd2cb4fdba7251896 [
file
] [
log
] [
blame
]
use
std
::
marker
::
PhantomData
;
struct
B
<
T
,
const
N
:
T
>(
PhantomData
<[
T
;
N
]>);
//~^ ERROR the type of const parameters must not depend on other generic parameters
fn
main
()
{}