rust/tests/ui/const-generics/const-param-type-depends-on...

7 lines
175 B
Rust

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() {}