blob: 92ff0ef643e34f36113d9494ac24d8ec843444a7 [file] [log] [blame]
pub enum ErrorHandled {
Reported,
TooGeneric,
}
impl ErrorHandled {
pub fn assert_reported(self) {
match self {
//~^ NOTE this delimiter might not be properly closed...
ErrorHandled::Reported => {}}
//~^ NOTE block is empty, you might have not meant to close it
//~| NOTE as it matches this but it has different indentation
ErrorHandled::TooGeneric => panic!(),
}
}
}
//~^ ERROR unexpected closing delimiter: `}`
//~| NOTE unexpected closing delimiter