Closed
Description
static FOO: u8 = 0;
const FOO_REF: &u8 = &FOO;
gives
error[E0013]: constants cannot refer to statics, use a constant instead
--> src/lib.rs:3:22
|
3 | const FOO_REF: &u8 = &FOO;
| ^^^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0013`.
error: could not compile `playground`.
The wording constants cannot refer to statics, use a constant instead
is confusing