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

26 lines
433 B
Rust
Raw Normal View History

#[non_exhaustive]
pub enum ErrorKind {
NotFound,
PermissionDenied,
ConnectionRefused,
ConnectionReset,
ConnectionAborted,
NotConnected,
AddrInUse,
AddrNotAvailable,
BrokenPipe,
AlreadyExists,
WouldBlock,
InvalidInput,
InvalidData,
TimedOut,
WriteZero,
Interrupted,
Other,
UnexpectedEof,
Unsupported,
OutOfMemory,
#[doc(hidden)]
Uncategorized,
}