error[E0658]: the `#[non_exhaustive]` attribute is an experimental feature --> $DIR/feature-gate-non_exhaustive.rs:3:1 | LL | #[non_exhaustive] | ^^^^^^^^^^^^^^^^^ | = note: for more information, see https://github.com/rust-lang/rust/issues/44109 = help: add `#![feature(non_exhaustive)]` to the crate attributes to enable error: aborting due to previous error For more information about this error, try `rustc --explain E0658`.