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

8 lines
169 B
Rust

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