static NO_MANGLE_GENERIC_ITEMS: &Lint
Expand description

The no_mangle_generic_items lint detects generic items that must be mangled.

§Example

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

}

{{produces}}

§Explanation

A 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.