static NO_MANGLE_CONST_ITEMS: &Lint
Expand description

The no_mangle_const_items lint detects any const items with the no_mangle attribute.

§Example

#[no_mangle]
const FOO: i32 = 5;

{{produces}}

§Explanation

Constants do not have their symbols exported, and therefore, this probably means you meant to use a static, not a const.