rust-clippy/tests/ui/auxiliary/non-exhaustive-enum.rs

9 lines
169 B
Rust
Raw Normal View History

// Stripped down version of the ErrorKind enum of std
#[non_exhaustive]
pub enum ErrorKind {
NotFound,
PermissionDenied,
#[doc(hidden)]
Uncategorized,
}