]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/issue-61522-array-len-succ.full.stderr
Auto merge of #79342 - CDirkx:ipaddr-const, r=oli-obk
[rust.git] / src / test / ui / const-generics / issue-61522-array-len-succ.full.stderr
1 error: constant expression depends on a generic parameter
2   --> $DIR/issue-61522-array-len-succ.rs:7:40
3    |
4 LL | pub struct MyArray<const COUNT: usize>([u8; COUNT + 1]);
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/issue-61522-array-len-succ.rs:12:24
11    |
12 LL |     fn inner(&self) -> &[u8; COUNT + 1] {
13    |                        ^^^^^^^^^^^^^^^^
14    |
15    = note: this may fail depending on what value the parameter takes
16
17 error: aborting due to 2 previous errors
18