summary refs log tree commit diff
path: root/src/test/ui/const-generics/array-size-in-generic-struct-param.full.stderr
blob: cf4487b5829c1f4af7bf46635b11d4670ed20d07 (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:9: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:20: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