Static rustc_lint::builtin::NO_MANGLE_CONST_ITEMS [−][src]
static NO_MANGLE_CONST_ITEMS: &LintExpand 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.