error[E0013]: constants cannot refer to statics
--> tests/bad/include_slice/const.rs:4:31
|
4 | const BYTES_32_const: &[u8] = include_data::include_slice!(u8, "../../test_data/binary_32");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider extracting the value of the `static` to a `const`, and referring to that
= note: this error originates in the macro `include_data::include_slice` (in Nightly builds, run with -Z macro-backtrace for more info)