summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/const-param-type-depends-on-const-param.full.stderr
blob: f639e276f46683346b33b1d7420e3e70381d46e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error[E0770]: the type of const parameters must not depend on other generic parameters
  --> $DIR/const-param-type-depends-on-const-param.rs:11:52
   |
LL | pub struct Dependent<const N: usize, const X: [u8; N]>([(); N]);
   |                                                    ^ the type must not depend on the parameter `N`

error[E0770]: the type of const parameters must not depend on other generic parameters
  --> $DIR/const-param-type-depends-on-const-param.rs:15:40
   |
LL | pub struct SelfDependent<const N: [u8; N]>;
   |                                        ^ the type must not depend on the parameter `N`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0770`.