2020-04-02 07:17:46 +00:00
|
|
|
pub enum ErrorHandled {
|
|
|
|
Reported,
|
|
|
|
TooGeneric,
|
|
|
|
}
|
|
|
|
|
|
|
|
impl ErrorHandled {
|
|
|
|
pub fn assert_reported(self) {
|
|
|
|
match self {
|
2023-08-14 21:47:23 +00:00
|
|
|
//~^ NOTE this delimiter might not be properly closed...
|
2020-04-03 07:24:02 +00:00
|
|
|
ErrorHandled::Reported => {}}
|
2023-08-14 21:47:23 +00:00
|
|
|
//~^ NOTE block is empty, you might have not meant to close it
|
|
|
|
//~| NOTE as it matches this but it has different indentation
|
2020-04-02 07:17:46 +00:00
|
|
|
ErrorHandled::TooGeneric => panic!(),
|
|
|
|
}
|
|
|
|
}
|
2023-08-14 21:47:23 +00:00
|
|
|
}
|
|
|
|
//~^ ERROR unexpected closing delimiter: `}`
|
|
|
|
//~| NOTE unexpected closing delimiter
|