rust/tests/ui/static/issue-18118-2.stderr

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

12 lines
324 B
Plaintext
Raw Normal View History

2020-01-10 07:31:36 -06:00
error[E0013]: constants cannot refer to statics
2019-11-19 17:16:58 -06:00
--> $DIR/issue-18118-2.rs:4:10
2018-07-15 16:11:54 -05:00
|
LL | &p
2019-11-19 17:16:58 -06:00
| ^
2020-01-10 07:31:36 -06:00
|
= help: consider extracting the value of the `static` to a `const`, and referring to that
2018-07-15 16:11:54 -05:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0013`.