Skip to main content

DUPLICATE_FEATURES

Static DUPLICATE_FEATURES 

Source
pub static DUPLICATE_FEATURES: &'static Lint
Expand description

The duplicate_features lint detects duplicate features found in crate-level feature attributes.

Note: This lint used to be a hard error (E0636).

§Example

#![feature(rustc_attrs)]
#![feature(rustc_attrs)]

{{produces}}

§Explanation

Enabling a feature more than once is a no-op. To avoid this warning, remove the second feature() attribute.