/// An enum representing a diagnostic level.
#[unstable(feature = "proc_macro_diagnostic", issue = "38356")]
#[derive(Copy, Clone, Debug)]
+#[non_exhaustive]
pub enum Level {
/// An error.
Error,
Note,
/// A help message.
Help,
- #[doc(hidden)]
- __Nonexhaustive,
}
/// A structure representing a diagnostic message and associated children
#![feature(staged_api)]
#![feature(lang_items)]
#![feature(optin_builtin_traits)]
+#![feature(non_exhaustive)]
#![recursion_limit="256"]
Level::Warning => errors::Level::Warning,
Level::Note => errors::Level::Note,
Level::Help => errors::Level::Help,
- Level::__Nonexhaustive => unreachable!("Level::__Nonexhaustive"),
}
}
}