rust/tests/ui/consts/issue-52060.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
362 B
Plaintext
Raw Normal View History

2020-01-10 07:31:36 -06:00
error[E0013]: constants cannot refer to statics
2018-08-29 10:45:55 -05:00
--> $DIR/issue-52060.rs:4:26
|
LL | static B: [u32; 1] = [0; A.len()];
| ^
2020-01-10 07:31:36 -06:00
|
= help: consider extracting the value of the `static` to a `const`, and referring to that
2018-08-29 10:45:55 -05:00
error: aborting due to previous error
2018-08-29 10:45:55 -05:00
For more information about this error, try `rustc --explain E0013`.