2018-08-29 10:45:55 -05:00
|
|
|
error[E0013]: constants cannot refer to statics, use a constant instead
|
|
|
|
--> $DIR/issue-52060.rs:4:26
|
|
|
|
|
|
|
|
|
LL | static B: [u32; 1] = [0; A.len()];
|
|
|
|
| ^
|
|
|
|
|
2019-12-16 08:23:42 -06:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/issue-52060.rs:4:26
|
|
|
|
|
|
|
|
|
LL | static B: [u32; 1] = [0; A.len()];
|
2019-12-22 14:40:00 -06:00
|
|
|
| ^ constant accesses static
|
2019-12-16 08:23:42 -06:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2018-08-29 10:45:55 -05:00
|
|
|
|
2019-12-16 08:23:42 -06:00
|
|
|
Some errors have detailed explanations: E0013, E0080.
|
|
|
|
For more information about an error, try `rustc --explain E0013`.
|