fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0015]: calls in constants are limited to constant functions, tuple structs and tuple variants 2 --> $DIR/issue-39559-2.rs:14:24 3 | 4LL | let array: [usize; Dim3::dim()] 5 | ^^^^^^^^^^^ 6 7error[E0080]: evaluation of constant value failed 8 --> $DIR/issue-39559-2.rs:14:24 9 | 10LL | let array: [usize; Dim3::dim()] 11 | ^^^^^^^^^^^ calling non-const function `<Dim3 as Dim>::dim` 12 13error[E0015]: calls in constants are limited to constant functions, tuple structs and tuple variants 14 --> $DIR/issue-39559-2.rs:17:15 15 | 16LL | = [0; Dim3::dim()]; 17 | ^^^^^^^^^^^ 18 19error[E0080]: evaluation of constant value failed 20 --> $DIR/issue-39559-2.rs:17:15 21 | 22LL | = [0; Dim3::dim()]; 23 | ^^^^^^^^^^^ calling non-const function `<Dim3 as Dim>::dim` 24 25error: aborting due to 4 previous errors 26 27Some errors have detailed explanations: E0015, E0080. 28For more information about an error, try `rustc --explain E0015`.