fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
601 B18 linesraw
1error[E0013]: constants cannot refer to statics
2  --> $DIR/issue-52060.rs:4:26
3   |
4LL | static B: [u32; 1] = [0; A.len()];
5   |                          ^
6   |
7   = help: consider extracting the value of the `static` to a `const`, and referring to that
8
9error[E0080]: evaluation of constant value failed
10  --> $DIR/issue-52060.rs:4:26
11   |
12LL | static B: [u32; 1] = [0; A.len()];
13   |                          ^ constant accesses static
14
15error: aborting due to 2 previous errors
16
17Some errors have detailed explanations: E0013, E0080.
18For more information about an error, try `rustc --explain E0013`.