Add ErrorKind::OutOfMemory
This commit is contained in:
parent
5491c802c2
commit
b75354034c
@ -77,7 +77,7 @@ fn main() {
|
|||||||
let error_kind = ErrorKind::NotFound;
|
let error_kind = ErrorKind::NotFound;
|
||||||
match error_kind {
|
match error_kind {
|
||||||
ErrorKind::NotFound => {},
|
ErrorKind::NotFound => {},
|
||||||
ErrorKind::PermissionDenied | ErrorKind::ConnectionRefused | ErrorKind::ConnectionReset | ErrorKind::ConnectionAborted | ErrorKind::NotConnected | ErrorKind::AddrInUse | ErrorKind::AddrNotAvailable | ErrorKind::BrokenPipe | ErrorKind::AlreadyExists | ErrorKind::WouldBlock | ErrorKind::InvalidInput | ErrorKind::InvalidData | ErrorKind::TimedOut | ErrorKind::WriteZero | ErrorKind::Interrupted | ErrorKind::Other | ErrorKind::UnexpectedEof | ErrorKind::Unsupported | _ => {},
|
ErrorKind::PermissionDenied | ErrorKind::ConnectionRefused | ErrorKind::ConnectionReset | ErrorKind::ConnectionAborted | ErrorKind::NotConnected | ErrorKind::AddrInUse | ErrorKind::AddrNotAvailable | ErrorKind::BrokenPipe | ErrorKind::AlreadyExists | ErrorKind::WouldBlock | ErrorKind::InvalidInput | ErrorKind::InvalidData | ErrorKind::TimedOut | ErrorKind::WriteZero | ErrorKind::Interrupted | ErrorKind::Other | ErrorKind::UnexpectedEof | ErrorKind::Unsupported | ErrorKind::OutOfMemory | _ => {},
|
||||||
}
|
}
|
||||||
match error_kind {
|
match error_kind {
|
||||||
ErrorKind::NotFound => {},
|
ErrorKind::NotFound => {},
|
||||||
@ -99,6 +99,7 @@ fn main() {
|
|||||||
ErrorKind::Other => {},
|
ErrorKind::Other => {},
|
||||||
ErrorKind::UnexpectedEof => {},
|
ErrorKind::UnexpectedEof => {},
|
||||||
ErrorKind::Unsupported => {},
|
ErrorKind::Unsupported => {},
|
||||||
|
ErrorKind::OutOfMemory => {},
|
||||||
_ => {},
|
_ => {},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -99,6 +99,7 @@ fn main() {
|
|||||||
ErrorKind::Other => {},
|
ErrorKind::Other => {},
|
||||||
ErrorKind::UnexpectedEof => {},
|
ErrorKind::UnexpectedEof => {},
|
||||||
ErrorKind::Unsupported => {},
|
ErrorKind::Unsupported => {},
|
||||||
|
ErrorKind::OutOfMemory => {},
|
||||||
_ => {},
|
_ => {},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,7 @@ error: wildcard matches known variants and will also match future added variants
|
|||||||
--> $DIR/wildcard_enum_match_arm.rs:80:9
|
--> $DIR/wildcard_enum_match_arm.rs:80:9
|
||||||
|
|
|
|
||||||
LL | _ => {},
|
LL | _ => {},
|
||||||
| ^ help: try this: `ErrorKind::PermissionDenied | ErrorKind::ConnectionRefused | ErrorKind::ConnectionReset | ErrorKind::ConnectionAborted | ErrorKind::NotConnected | ErrorKind::AddrInUse | ErrorKind::AddrNotAvailable | ErrorKind::BrokenPipe | ErrorKind::AlreadyExists | ErrorKind::WouldBlock | ErrorKind::InvalidInput | ErrorKind::InvalidData | ErrorKind::TimedOut | ErrorKind::WriteZero | ErrorKind::Interrupted | ErrorKind::Other | ErrorKind::UnexpectedEof | ErrorKind::Unsupported | _`
|
| ^ help: try this: `ErrorKind::PermissionDenied | ErrorKind::ConnectionRefused | ErrorKind::ConnectionReset | ErrorKind::ConnectionAborted | ErrorKind::NotConnected | ErrorKind::AddrInUse | ErrorKind::AddrNotAvailable | ErrorKind::BrokenPipe | ErrorKind::AlreadyExists | ErrorKind::WouldBlock | ErrorKind::InvalidInput | ErrorKind::InvalidData | ErrorKind::TimedOut | ErrorKind::WriteZero | ErrorKind::Interrupted | ErrorKind::Other | ErrorKind::UnexpectedEof | ErrorKind::Unsupported | ErrorKind::OutOfMemory | _`
|
||||||
|
|
||||||
error: aborting due to 5 previous errors
|
error: aborting due to 5 previous errors
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user