2018-01-07 20:57:32 -06:00
|
|
|
error: const items should never be #[no_mangle]
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-45562.rs:3:14
|
2018-01-07 20:57:32 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | #[no_mangle] pub const RAH: usize = 5;
|
2018-01-07 20:57:32 -06:00
|
|
|
| ---------^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| help: try a static value: `pub static`
|
|
|
|
|
|
|
|
|
= note: #[deny(no_mangle_const_items)] on by default
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|