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/array-size-in-generic-struct-param.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/array-size-in-generic-struct-param.rs:5:38 11 | 12LL | struct ArithArrayLen<const N: usize>([u32; 0 + N]); 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/array-size-in-generic-struct-param.rs:14:5 19 | 20LL | arr: [u8; CFG.arr_size], 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