fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1warning: the feature `const_generics` is incomplete and may cause the compiler to crash 2 --> $DIR/issue-61522-array-len-succ.rs:1:12 3 | 4LL | #![feature(const_generics)] 5 | ^^^^^^^^^^^^^^ 6 | 7 = note: `#[warn(incomplete_features)]` on by default 8 9error: constant expression depends on a generic parameter 10 --> $DIR/issue-61522-array-len-succ.rs:4:40 11 | 12LL | pub struct MyArray<const COUNT: usize>([u8; COUNT + 1]); 13 | ^^^^^^^^^^^^^^^ 14 | 15 = note: this may fail depending on what value the parameter takes 16 17error: constant expression depends on a generic parameter 18 --> $DIR/issue-61522-array-len-succ.rs:8:24 19 | 20LL | fn inner(&self) -> &[u8; COUNT + 1] { 21 | ^^^^^^^^^^^^^^^^ 22 | 23 = note: this may fail depending on what value the parameter takes 24 25error: aborting due to 2 previous errors; 1 warning emitted 26