1use error::Error;
2
3use std::error;
4use std::fmt;
5
6pub enum Never {}
11
12impl From<Never> for Error {
13 fn from(never: Never) -> Error {
14 match never {}
15 }
16}
17
18impl fmt::Debug for Never {
19 fn fmt(&self, _f: &mut fmt::Formatter) -> fmt::Result {
20 match *self {}
21 }
22}
23
24impl fmt::Display for Never {
25 fn fmt(&self, _f: &mut fmt::Formatter) -> fmt::Result {
26 match *self {}
27 }
28}
29
30impl error::Error for Never {
31 fn description(&self) -> &str {
32 match *self {}
33 }
34}