about summary refs log tree commit diff
path: root/src/test/ui/const-generics/array-size-in-generic-struct-param.full.stderr
blob: 0fb23e41b013fa076ed25d15909eaf5890e55bc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
error: constant expression depends on a generic parameter
  --> $DIR/array-size-in-generic-struct-param.rs:8:38
   |
LL | struct ArithArrayLen<const N: usize>([u32; 0 + N]);
   |                                      ^^^^^^^^^^^^
   |
   = note: this may fail depending on what value the parameter takes

error: constant expression depends on a generic parameter
  --> $DIR/array-size-in-generic-struct-param.rs:19:10
   |
LL |     arr: [u8; CFG.arr_size],
   |          ^^^^^^^^^^^^^^^^^^
   |
   = note: this may fail depending on what value the parameter takes

error: aborting due to 2 previous errors