[−][src]Static rustc_lint::builtin::NO_MANGLE_CONST_ITEMS
pub(in builtin) static NO_MANGLE_CONST_ITEMS: &Lint
The no_mangle_const_items lint detects any const items with the
no_mangle attribute.
Example
ⓘThis example deliberately fails to compile
#[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.