]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/const-param-type-depends-on-type-param-ungated.stderr
Rollup merge of #107819 - clubby789:x-py-root, r=jyn514
[rust.git] / tests / ui / const-generics / const-param-type-depends-on-type-param-ungated.stderr
1 error[E0770]: the type of const parameters must not depend on other generic parameters
2   --> $DIR/const-param-type-depends-on-type-param-ungated.rs:6:22
3    |
4 LL | struct B<T, const N: T>(PhantomData<[T; N]>);
5    |                      ^ the type must not depend on the parameter `T`
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0770`.