2020-04-02 02:17:46 -05:00
|
|
|
pub enum ErrorHandled {
|
|
|
|
Reported,
|
|
|
|
TooGeneric,
|
|
|
|
}
|
|
|
|
|
|
|
|
impl ErrorHandled {
|
|
|
|
pub fn assert_reported(self) {
|
|
|
|
match self {
|
2020-04-03 02:24:02 -05:00
|
|
|
ErrorHandled::Reported => {}}
|
2020-04-04 03:01:42 -05:00
|
|
|
//^~ ERROR block is empty, you might have not meant to close it
|
2020-04-02 02:17:46 -05:00
|
|
|
ErrorHandled::TooGeneric => panic!(),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} //~ ERROR unexpected closing delimiter: `}`
|