blob: 9c5c97befd83663ca9d8be52634ec03201faa1ce (
plain)
1
2
3
4
5
6
7
8
9
|
error[E0770]: the type of const parameters must not depend on other generic parameters
--> $DIR/const-param-type-depends-on-type-param-ungated.rs:3:22
|
LL | struct B<T, const N: T>(PhantomData<[T; N]>);
| ^ the type must not depend on the parameter `T`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0770`.
|