rust/src/test/ui/issues/issue-52060.stderr

17 lines
527 B
Plaintext
Raw Normal View History

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()];
| ^
error[E0080]: evaluation of constant value failed
--> $DIR/issue-52060.rs:4:26
|
LL | static B: [u32; 1] = [0; A.len()];
| ^ constant accesses static
error: aborting due to 2 previous errors
2018-08-29 10:45:55 -05:00
Some errors have detailed explanations: E0013, E0080.
For more information about an error, try `rustc --explain E0013`.