1 warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
2 --> $DIR/issue-61522-array-len-succ.rs:1:12
4 LL | #![feature(const_generics)]
7 = note: `#[warn(incomplete_features)]` on by default
8 = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
10 error: constant expression depends on a generic parameter
11 --> $DIR/issue-61522-array-len-succ.rs:4:40
13 LL | pub struct MyArray<const COUNT: usize>([u8; COUNT + 1]);
16 = note: this may fail depending on what value the parameter takes
18 error: constant expression depends on a generic parameter
19 --> $DIR/issue-61522-array-len-succ.rs:8:24
21 LL | fn inner(&self) -> &[u8; COUNT + 1] {
24 = note: this may fail depending on what value the parameter takes
26 error: aborting due to 2 previous errors; 1 warning emitted