summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/const-param-type-depends-on-type-param-ungated.stderr
blob: 8e14defd65d99c87ef7c604082b3c816b6ee7ee3 (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:6: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`.