]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/array-size-in-generic-struct-param.full.stderr
Auto merge of #79342 - CDirkx:ipaddr-const, r=oli-obk
[rust.git] / src / test / ui / const-generics / array-size-in-generic-struct-param.full.stderr
1 error: constant expression depends on a generic parameter
2   --> $DIR/array-size-in-generic-struct-param.rs:9:38
3    |
4 LL | struct ArithArrayLen<const N: usize>([u32; 0 + N]);
5    |                                      ^^^^^^^^^^^^
6    |
7    = note: this may fail depending on what value the parameter takes
8
9 error: constant expression depends on a generic parameter
10   --> $DIR/array-size-in-generic-struct-param.rs:20:10
11    |
12 LL |     arr: [u8; CFG.arr_size],
13    |          ^^^^^^^^^^^^^^^^^^
14    |
15    = note: this may fail depending on what value the parameter takes
16
17 error: aborting due to 2 previous errors
18