[−][src]Static rustc_lint::builtin::NO_MANGLE_GENERIC_ITEMS

pub(in builtin) static NO_MANGLE_GENERIC_ITEMS: &Lint

The no_mangle_generic_items lint detects generic items that must be mangled.

Example

#[no_mangle]
fn foo<T>(t: T) {

}

{{produces}}

Explanation

An function with generics must have its symbol mangled to accommodate the generic parameter. The no_mangle attribute has no effect in this situation, and should be removed.