error[E0658]: `cfg(target_feature)` is experimental and subject to change (see issue #29717) --> $DIR/feature-gate-cfg-target-feature.rs:12:12 | LL | #[cfg_attr(target_feature = "x", x)] //~ ERROR `cfg(target_feature)` is experimental | ^^^^^^^^^^^^^^^^^^^^ | = help: add #![feature(cfg_target_feature)] to the crate attributes to enable error[E0658]: `cfg(target_feature)` is experimental and subject to change (see issue #29717) --> $DIR/feature-gate-cfg-target-feature.rs:11:7 | LL | #[cfg(target_feature = "x")] //~ ERROR `cfg(target_feature)` is experimental | ^^^^^^^^^^^^^^^^^^^^ | = help: add #![feature(cfg_target_feature)] to the crate attributes to enable error[E0658]: `cfg(target_feature)` is experimental and subject to change (see issue #29717) --> $DIR/feature-gate-cfg-target-feature.rs:15:19 | LL | #[cfg(not(any(all(target_feature = "x"))))] //~ ERROR `cfg(target_feature)` is experimental | ^^^^^^^^^^^^^^^^^^^^ | = help: add #![feature(cfg_target_feature)] to the crate attributes to enable error[E0658]: `cfg(target_feature)` is experimental and subject to change (see issue #29717) --> $DIR/feature-gate-cfg-target-feature.rs:19:10 | LL | cfg!(target_feature = "x"); | ^^^^^^^^^^^^^^^^^^^^ | = help: add #![feature(cfg_target_feature)] to the crate attributes to enable error: aborting due to 4 previous errors For more information about this error, try `rustc --explain E0658`.